vis.trends: Visualise trends for multiple overlapping periods

View source: R/vis.trends.R

vis.trendsR Documentation

Visualise trends for multiple overlapping periods

Description

Produce a plot showing trends for multiple periods within a time series. The strength of the trend is represented by the color scale and significant trends are marked with black borders.

Usage

## S3 method for class 'trends'
vis(
  x,
  ...,
  unitlabel = NULL,
  varlabel = NULL,
  is = 1,
  pmax = 0.01,
  minlen = 15,
  lwd = NA,
  vmax = NA,
  new = TRUE,
  show.significance = TRUE,
  verbose = FALSE
)

Arguments

x

the 'x' argument provides the time series for which the trend analysis is performed. Only zoo objects are accepted.

unitlabel

unit of x.

varlabel

name of x.

is

spatial index for subsetting station data

pmax

maximum p-value of trends marked as significant.

minlen

minimum time interval to calculate trends for in units of years.

lwd

width of lines

vmax

upper limit of trend scale.

new

if TRUE plot in new window

show.significance

TRUE to mark statistically significant trends.

verbose

TRUE or FALSE.

Author(s)

Kajsa Parding

Examples


t <- seq(as.Date("1955-01-01"),as.Date("2004-12-31"),by=1)
x <- zoo(sample(seq(-30,30,1e-1),length(t),rep=TRUE),order.by=t)
vis.trends(x, show.significance=FALSE, new=FALSE)

data(Oslo)
vis.trends(Oslo, unitlabel="oC", varlabel = "Temperature",
  pmax = 1e-2, minlen = 40, new=FALSE)
vis.trends(subset(Oslo,it='jja'), unitlabel="oC",
  varlabel = "Temperature JJA",
  pmax = 1e-3, vmax=0.5, minlen = 40, new=FALSE)
vis.trends(subset(Oslo,it='mam'), unitlabel="oC",
  varlabel = "Temperature MAM",
  pmax = 1e-3, vmax=0.5, minlen = 40, new=FALSE)


metno/esd documentation built on April 24, 2024, 9:19 p.m.