multiplot | R Documentation |
This function takes several ggplot2 plots and arranges them on one page.
multiplot(plotlist = NULL, tt.title = main, main = NULL, ..., cols = 1, layout = NULL)
plotlist |
Alternative way to pass ggplot objects. |
tt.title |
Same as main. |
main |
Title of the overall plot. |
... |
Additional arguments for ggplot. |
cols |
Number of columns in layout. Default = 1. |
layout |
A matrix specifying the layout. If present, cols is ignored. |
Well, it is not really related to extreme value fitting
and I am aware of the fact that its quite bad style to export
auxiliary functions. But this one is just so handy. If the
layout is something like
matrix( c( 1, 2, 3, 3 ), nrow = 2, byrow = TRUE )
,
then plot 1 will go in the upper left, 2 will go in the upper
right, and 3 will go all the way across the bottom. ggplot
objects can be passed in ..., or to plotlist (as a list
print object.
Paul Teetor (original), Philpp Mueller (minor changes)
Other plot: ttplot
anomalies.potsdam <- anomalies( temp.potsdam ) multiplot( anomalies.potsdam, temp.potsdam, cols = 2, main = "Difference between the pure data of the daily maximum temperatures of the Potsdam station and their anomalies" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.