plot_timeseries: Plot time series (plume)

Description Usage Arguments Value Examples

View source: R/plot_timeseries.R

Description

Function to plot timeseries given objects of class 'NetCDF'

Usage

1
2
3
4
5
plot_timeseries(dquant, dfiltquant, omn = 0, obs = NULL, modts = NULL,
  modi = 1, baselining = NULL, seas = "", xlim = NULL, ylim = NULL,
  add = FALSE, relative = FALSE, startyear = NULL, endyear = NULL,
  las = 2, ylab = "", scenario = "rcp85", xaxt = "s", yaxt = "s",
  add.legend = TRUE, as.lines = FALSE, add.grid = FALSE)

Arguments

dquant

list of (outer) quantile ranges for different scenarios

dfiltquant

list of (inner) quantile ranges

omn

Climatology to be added to everything (multiplied if relative)

obs

list or array of observations to be added as lines (one each)

modts

list of example model data to be overlaid

modi

index of model(s) to be overlaid

baselining

boundaries of shading to indicate reference period

seas

Text to be included as title (topleft inside graph)

xlim,ylim

extent of plot

add

logical, whether plot should be added to existing plot

relative

logical, climatology is multiplied if TRUE

startyear,endyear

range of years to which plot is clipped

las

orientation of axis labels (see par)

ylab

labels for vertical axis

scenario

scenario to be plotted

xaxt,yaxt

character descriping x and y axis type

add.legend

logical, should legend be added?

as.lines

logical, should individual model time series be shown?

add.grid

logical, should horizontal grid lines be added?

Value

vertical limits of plots (e.g. ylim)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## compute anomalies of the original time series
danom <- anomalies(dd, c(1950,2005))
oanom <- anomalies(oo, c(1950, 2005))
## compute the quantiles of 20-year means (inner shading)
dfiltquant <- apply.NetCDF(applyfilter(danom, rep(1/20, 20)), 3, quantfun)
## compute the quantiles of individual years (outer shading)
dquant <- applyfilter(apply.NetCDF(danom, 3, quantfun), rep(1/20, 20))

## plot the time series
plot_timeseries(dquant=dquant,
                dfiltquant=dfiltquant,
                obs=oanom,
                ylab='Temperature anomalies (1950-2005)')

jonasbhend/NRMgraphics documentation built on May 19, 2019, 7:26 p.m.