Created
February 3, 2016 17:14
-
-
Save gshotwell/e17adcb97c4ee3747383 to your computer and use it in GitHub Desktop.
ggplot dotplot binned along x and stacked along the y.
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(dplyr) | |
library(ggplot2) | |
df <- mtcars %>% | |
group_by(cyl) %>% | |
mutate(n = 1: n()) | |
ggplot(df, aes(x = cyl, y = n)) + geom_point() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment