From 9836d5c86a46a03d2e5b3a6593e00c6bd3e475c4 Mon Sep 17 00:00:00 2001 From: djbirke Date: Wed, 3 May 2017 05:43:15 -0700 Subject: [PATCH] Add `show.legend = FALSE` mentioned in exercise (#543) The example wants to show different ways of producing the same plot (as done in the print version). One of the exercises refers to a `show.legend = FALSE` used previously. This change brings the parts back into harmony. --- visualize.Rmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/visualize.Rmd b/visualize.Rmd index 42a63a2..cc6e21f 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -359,7 +359,8 @@ ggplot(data = mpg) + ggplot(data = mpg) + geom_smooth( - mapping = aes(x = displ, y = hwy, group = drv) + mapping = aes(x = displ, y = hwy, color = drv), + show.legend = FALSE ) ```