Skip to content

Commit 187e09c

Browse files
committed
don't evaluate code temporarily in FAQ example
1 parent 8cf5d1e commit 187e09c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vignettes/articles/faq-axes.Rmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,10 @@ ggplot(mpg, aes(x = cty^2, y = log(hwy, base = 10))) +
444444
)
445445
```
446446

447-
<!-- Temporarily disabled while migrating to S7
448-
449447
- If you're already familiar with Markdown and HTML, you might prefer using the [ggtext](https://wilkelab.org/ggtext/) package instead. In Markdown we can write the axis labels as `cty<sup>2</sup>` and `log<sub>10</sub>(hwy)` for x and y axes, respectively. Then, we tell ggplot2 to interpret the axis labels as Markdown and not as plain text by setting `axis.title.x` and `axis.title.y` to `ggtext::element_markdown()`.
450448

451449
```{r}
450+
#| eval: false
452451
#| fig.alt: "A scatter plot showing the squared city miles per gallon on the
453452
#| x-axis versus the base 10 logarithm of highway miles per gallon on the
454453
#| y-axis for 234 cars. In the axis titles, the base 10 is indicated in
@@ -465,7 +464,6 @@ ggplot(mpg, aes(x = cty^2, y = log(hwy, base = 10))) +
465464
axis.title.y = ggtext::element_markdown()
466465
)
467466
```
468-
-->
469467

470468
</details>
471469

0 commit comments

Comments
 (0)