Skip to content

Commit

Permalink
Fixing typo in plot alt (hadley#1267)
Browse files Browse the repository at this point in the history
Fixing typo in plot alternative in Statistical transformations section
  • Loading branch information
davidrsch authored Feb 8, 2023
1 parent cd6c68b commit a857e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ However, there are three reasons why you might need to use a stat explicitly:
```{r}
#| fig-alt: >
#| Bar chart of proportion of each cut of diamond. Roughly, Fair
#| diamonds make up 0.03, Good 0.09, Very Good 0.22, Premium 26, and
#| diamonds make up 0.03, Good 0.09, Very Good 0.22, Premium 0.26, and
#| Ideal 0.40.
ggplot(diamonds, aes(x = cut, y = after_stat(prop), group = 1)) +
Expand Down

0 comments on commit a857e3e

Please sign in to comment.