multiplot: Plot multiple time series.

View source: R/plot.R

multiplotR Documentation

Plot multiple time series.

Description

This function takes several ggplot2 plots and arranges them on one page.

Usage

multiplot(plotlist = NULL, tt.title = main, main = NULL, ...,
  cols = 1, layout = NULL)

Arguments

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.

Details

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

Value

print object.

Author(s)

Paul Teetor (original), Philpp Mueller (minor changes)

See Also

Other plot: ttplot

Examples

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" ) 

theGreatWhiteShark/climex documentation built on July 13, 2022, 9:11 a.m.