powered by
The multiplot function plots multiple ggplots in the same window.
multiplot(..., cols = 1)
ggplot2 objects, separated by comma.
Integer, specifying the number of plots in one row in the layout.
Creates multiple ggplots in same window
Plots multiple ggplots in the same window - multiplot(p1,p2,p3,p4, cols=2) is similar to the standard R notation par(mfrow=c(2,2)).
# NOT RUN { multiplot(p1,p2,p3,cols=3) # }
Run the code above in your browser using DataLab