Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2015 11:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
(Figure 5) Code, control, and making the argument in the Humanities
library(dplyr, warn.conflicts = FALSE)
library(tidyr, warn.conflicts = FALSE)
#read data from csv
names <- read.csv("BM.csv")
#plot data
ggplot(names, aes(x = N, fill = GENDER)) +
ggtitle("A Facet Grid (log(x), by DECADE and GENDER") +
geom_histogram() +
scale_x_log10() +
facet_grid(DECADE ~ GENDER)
#save data to file
ggsave("BM_genderdecade-grid-logx.png", width = 7, height = 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment