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.
This commit is contained in:
djbirke 2017-05-03 05:43:15 -07:00 committed by Hadley Wickham
parent f326765d3c
commit 9836d5c86a
1 changed files with 2 additions and 1 deletions

View File

@ -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
)
```