vis.trends | R Documentation |
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.
## 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
)
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. |
Kajsa Parding
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.