From 2df59fd8ae0f78eb45d67e7ab5ef8f4a8c7edb51 Mon Sep 17 00:00:00 2001 From: Garrett Grolemund Date: Fri, 8 May 2020 16:58:10 -0400 Subject: [PATCH] Fixes a quite bad link (#849) --- communicate-plots.Rmd | 2 +- visualize.Rmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/communicate-plots.Rmd b/communicate-plots.Rmd index 0da1f54..cad1cd6 100644 --- a/communicate-plots.Rmd +++ b/communicate-plots.Rmd @@ -591,4 +591,4 @@ It's a good idea to name code chunks that produce figures, even if you don't rou The absolute best place to learn more is the ggplot2 book: [_ggplot2: Elegant graphics for data analysis_](https://amzn.com/331924275X). It goes into much more depth about the underlying theory, and has many more examples of how to combine the individual pieces to solve practical problems. Unfortunately, the book is not available online for free, although you can find the source code at . -Another great resource is the ggplot2 extensions guide . This site lists many of the packages that extend ggplot2 with new geoms and scales. It's a great place to start if you're trying to do something that seems hard with ggplot2. +Another great resource is the ggplot2 extensions gallery . This site lists many of the packages that extend ggplot2 with new geoms and scales. It's a great place to start if you're trying to do something that seems hard with ggplot2. diff --git a/visualize.Rmd b/visualize.Rmd index 6ad961f..caa2269 100644 --- a/visualize.Rmd +++ b/visualize.Rmd @@ -346,7 +346,7 @@ ggplot(data = mpg, mapping = aes(x = displ, y = hwy, color = drv)) + Notice that this plot contains two geoms in the same graph! If this makes you excited, buckle up. We will learn how to place multiple geoms in the same plot very soon. -ggplot2 provides over 40 geoms, and extension packages provide even more (see for a sampling). The best way to get a comprehensive overview is the ggplot2 cheatsheet, which you can find at . To learn more about any single geom, use help: `?geom_smooth`. +ggplot2 provides over 40 geoms, and extension packages provide even more (see for a sampling). The best way to get a comprehensive overview is the ggplot2 cheatsheet, which you can find at . To learn more about any single geom, use help: `?geom_smooth`. Many geoms, like `geom_smooth()`, use a single geometric object to display multiple rows of data. For these geoms, you can set the `group` aesthetic to a categorical variable to draw multiple objects. ggplot2 will draw a separate object for each unique value of the grouping variable. In practice, ggplot2 will automatically group the data for these geoms whenever you map an aesthetic to a discrete variable (as in the `linetype` example). It is convenient to rely on this feature because the group aesthetic by itself does not add a legend or distinguishing features to the geoms.