Skip to content

Commit

Permalink
Switch plot2 to tinyplot in code cell option demo due to a rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 6, 2024
1 parent 3bf20b2 commit 680a1e0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/demos/qwebr-code-cell-options.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Demo: Initial Code Cell Option Support"
engine: knitr
webr:
packages: ['knitr', 'plot2']
packages: ['knitr', 'tinyplot']
repos:
- https://grantmcdermott.r-universe.dev
filters:
Expand Down Expand Up @@ -129,7 +129,7 @@ The `fig-width` and `fig-height` options control the width and height of the plo
#| fig-width: 6
#| fig-height: 6
plot2::plot2(
tinyplot::tinyplot(
~ Petal.Length | Species,
data = iris,
type = "density",
Expand All @@ -146,7 +146,7 @@ plot2::plot2(
#| fig-height: 6

# Generating a bar plot with a specific width
plot2::plot2(
tinyplot::tinyplot(
~ Petal.Length | Species,
data = iris,
type = "density",
Expand All @@ -167,7 +167,7 @@ In comparison, we have the default option of `7`:
```{webr-r}
#| context: output
plot2::plot2(
tinyplot::tinyplot(
~ Petal.Length | Species,
data = iris,
type = "density",
Expand All @@ -181,7 +181,7 @@ plot2::plot2(
```{webr-r}
#| context: output

plot2::plot2(
tinyplot::tinyplot(
~ Petal.Length | Species,
data = iris,
type = "density",
Expand All @@ -206,7 +206,7 @@ The `out-width` and `out-height` options control physical space the plot will re
#| fig-height: 6
#| out-width: 500px
#| out-height: 500px
plot2::plot2(
tinyplot::tinyplot(
~ Petal.Length | Species,
data = iris,
type = "density",
Expand All @@ -223,7 +223,7 @@ plot2::plot2(
#| fig-height: 5
#| out-width: 500px
#| out-height: 400px
plot2::plot2(
tinyplot::tinyplot(
~ Petal.Length | Species,
data = iris,
type = "density",
Expand Down

0 comments on commit 680a1e0

Please sign in to comment.