What does this error mean? Or, any idea for how to reproduce this plot?
Cheers,
Corey
--
Check out our R resources at http://d-rug.github.io/
---
You received this message because you are subscribed to the Google Groups "Davis R Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to davis-rug+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/davis-rug.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to davis-rug+...@googlegroups.com.
Visit this group at https://groups.google.com/group/davis-rug.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to davis-rug+...@googlegroups.com.
Visit this group at https://groups.google.com/group/davis-rug.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to davis-rug+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/davis-rug.
For more options, visit https://groups.google.com/d/optout.
# Create seven identical plots just for illustration
p1 = ggplot(mtcars, aes(wt, mpg)) +
geom_point()
p2 = p3 = p4 = p5 = p6 = p7 = p1
# Put the plots in a list
plots = list(p1,p2,p3,p4,p5,p6,p7)
grid.arrange(grobs=plots, layout_matrix=lay)
grid.arrange(p1,p2,p3,p4,p5,p6,p7, layout_matrix=lay)
grid.arrange(grobs=mget(paste0("p",1:7)), layout_matrix=lay)
plot.list = lapply(unique(mtcars$carb), function(group) {
ggplot(mtcars[mtcars$carb==group, ], aes(wt, mpg)) +
geom_point()
})
grid.arrange(grobs=lapply(plot.list, function(p) {
p + theme(axis.title=element_blank())
}), bottom="Weight", left="MPG", layout_matrix=lay)
grid.arrange(grobs=c(plots[1:5], list(arrangeGrob(grobs=plots[6:7], ncol=1))), ncol=3)