From e15b8ad2b89a1db7ef39d42df5d080f1c28d77d8 Mon Sep 17 00:00:00 2001 From: sibusiso16 Date: Mon, 13 Jun 2016 12:12:39 +0200 Subject: [PATCH] Update visualize.Rmd Hi Hadley. I changed "If you map the fill aesthetic to a third variable" to "If you map the fill aesthetic to another variable". I could be wrong but i believe this was a typo. --- visualize.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualize.Rmd b/visualize.Rmd index d2004ca..5ee7145 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -358,7 +358,7 @@ ggplot(data = diamonds) + geom_bar(mapping = aes(x = cut, fill = cut)) ``` -If you map the fill aesthetic to a third variable, like `clarity`, you get a stacked bar chart. Each colored rectangle represents a combination of `cut` and `clarity`. +If you map the fill aesthetic to another variable, like `clarity`, you get a stacked bar chart. Each colored rectangle represents a combination of `cut` and `clarity`. ```{r} ggplot(data = diamonds) +