diff --git a/visualize.Rmd b/visualize.Rmd index 216d6dc..1b9e48f 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -565,9 +565,9 @@ ggplot2 provides over 20 stats for you to use. Each stat is a function, so you c ```{r, eval = FALSE} ggplot(data = diamonds) + - geom_bar(mapping = aes(x = cut, y = ..prop..)) + geom_bar(mapping = aes(x = cut, y = after_stat(prop))) ggplot(data = diamonds) + - geom_bar(mapping = aes(x = cut, fill = color, y = ..prop..)) + geom_bar(mapping = aes(x = cut, fill = color, y = after_stat(prop))) ```