From 0cadd594e1cea78f2c9fd7673c5103109c4a4317 Mon Sep 17 00:00:00 2001 From: Brett Klamer Date: Thu, 25 Aug 2016 15:05:21 -0400 Subject: [PATCH] Fixing typos in communicate-plots.Rmd (#303) Add space after period. --- communicate-plots.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communicate-plots.Rmd b/communicate-plots.Rmd index 10742c8..f873c55 100644 --- a/communicate-plots.Rmd +++ b/communicate-plots.Rmd @@ -111,7 +111,7 @@ ggplot(mpg, aes(displ, hwy)) + geom_label(aes(label = model), data = best_in_class, nudge_y = 2, alpha = 0.5) ``` -That helps a bit, but if you look closely in the top-left hand corner, you'll notice that there are two labels practically on top of each other. This happens because the highway mileage and displacement for the best cars in the compact and subcompact categories are exactly the same.There's no way that we can fix these by applying the same transformation for every label. Instead, we can use the __ggrepel__ package by Kamil Slowikowski. This useful package will automatically adjust labels so that they don't overlap: +That helps a bit, but if you look closely in the top-left hand corner, you'll notice that there are two labels practically on top of each other. This happens because the highway mileage and displacement for the best cars in the compact and subcompact categories are exactly the same. There's no way that we can fix these by applying the same transformation for every label. Instead, we can use the __ggrepel__ package by Kamil Slowikowski. This useful package will automatically adjust labels so that they don't overlap: ```{r} ggplot(mpg, aes(displ, hwy)) +