Created
May 12, 2020 14:51
-
-
Save dgkeyes/6996b8c804cb9ddf5a19d148d2e42858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iris %>% | |
group_by(Species) %>% | |
summarize(mean_petal_width = mean(Petal.Width)) %>% | |
ungroup() %>% | |
ggplot(aes(Species, mean_petal_width, | |
fill = Species)) + | |
geom_col(show.legend = FALSE) + | |
theme_ipsum() + | |
scale_fill_manual(values = c("setosa" = "lightgray", | |
"versicolor" = "lightgray", | |
"virginica" = "red")) + | |
labs(x = NULL, | |
y = NULL, | |
title = "<span style = 'color: red;'>Virginica irises</span> have the largest average sepal width") + | |
theme(plot.title = element_markdown()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment