Skip to content

Instantly share code, notes, and snippets.

@ikashnitsky
Last active April 5, 2021 21:13
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 ikashnitsky/45d164b4ff3e317f91fed4c7513eefdb to your computer and use it in GitHub Desktop.
Save ikashnitsky/45d164b4ff3e317f91fed4c7513eefdb to your computer and use it in GitHub Desktop.
A minimal example #RotateTheDamnPlot, supplement for https://twitter.com/ikashnitsky/status/1378688932968333312
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