Skip to content

Instantly share code, notes, and snippets.

@aurielfournier
Created January 18, 2019 19:11
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 aurielfournier/8cb6e723dd72a880887e3e06f6bda1b4 to your computer and use it in GitHub Desktop.
Save aurielfournier/8cb6e723dd72a880887e3e06f6bda1b4 to your computer and use it in GitHub Desktop.
dat <- data.frame(a=c(1,2,3),
b=c(4,5,6))
plota <- ggplot(data=dat,
aes(x=a, y=b))+
geom_point()+
theme(axis.title.y = element_blank())
plotb <- ggplot(data=dat,
aes(x=a, y=b))+
geom_point()
masterplot <- cowplot::plot_grid(plota, plota,
plotb, plota,
plota, plota,
nrow=3, align="v")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment