Last active
April 5, 2021 21:13
-
-
Save ikashnitsky/45d164b4ff3e317f91fed4c7513eefdb to your computer and use it in GitHub Desktop.
A minimal example #RotateTheDamnPlot, supplement for https://twitter.com/ikashnitsky/status/1378688932968333312
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
library(tidyverse) | |
mtcars %>% | |
group_by(cyl = cyl %>% as_factor) %>% | |
summarise(avg_mpg = mpg %>% mean) %>% | |
ggplot(aes(avg_mpg, cyl))+ | |
geom_col() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment