Fix alt-text for sub-figures in missing-values.qmd (#1588)

This commit is contained in:
Yongyi Zeng 2023-10-30 20:17:17 +08:00 committed by GitHub
parent c9c8e9e747
commit 9de17a3ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -228,11 +228,10 @@ You can force them to display by supplying `drop = FALSE` to the appropriate dis
```{r} ```{r}
#| layout-ncol: 2 #| layout-ncol: 2
#| fig-width: 3 #| fig-width: 3
#| fig-alt: | #| fig-alt:
#| A bar chart with a single value on the x-axis, "no". #| - A bar chart with a single value on the x-axis, "no".
#| #| - The same bar chart as the last plot, but now with two values on
#| The same bar chart as the last plot, but now with two values on #| the x-axis, "yes" and "no". There is no bar for the "yes" category.
#| the x-axis, "yes" and "no". There is no bar for the "yes" category.
ggplot(health, aes(x = smoker)) + ggplot(health, aes(x = smoker)) +
geom_bar() + geom_bar() +
scale_x_discrete() scale_x_discrete()