search for: numplots

Displaying 1 result from an estimated 1 matches for "numplots".

Did you mean: num_slots
2011 Dec 07
1
Help! I couldn't put multiple qplot on the same page...
...homework and followed the following advice: http://stackoverflow.com/questions/1249548/side-by-side-plots-with-ggplot2-in-r my.multiplot <- function(..., plotlist=NULL, cols) { require(grid) # Make a list from the ... arguments and plotlist plots <- c(list(...), plotlist) numPlots = length(plots) # Make the panel plotCols = cols # Number of columns of plots plotRows = ceiling(numPlots/plotCols) # Number of rows needed, calculated from # of cols # Set up the page grid.newpage() pushViewport(viewport(layout = grid.layout(plotR...