Skip to content

Instantly share code, notes, and snippets.

@dgkeyes
Created May 12, 2020 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgkeyes/51c85e0c3429224f00012acf0a719587 to your computer and use it in GitHub Desktop.
Save dgkeyes/51c85e0c3429224f00012acf0a719587 to your computer and use it in GitHub Desktop.
iris %>%
group_by(Species) %>%
summarize(mean_petal_width = mean(Petal.Width)) %>%
ungroup() %>%
ggplot(aes(Species, mean_petal_width)) +
geom_col() +
theme_ipsum() +
labs(x = NULL,
y = NULL,
title = "Average petal width of irises by species")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment