superimpose.data.f: Superimpose the data series and a smooth gam (spline) trend...

Description Usage Arguments Details See Also

View source: R/climate.stripes.r

Description

Superimpose data and a gam smooth (spline) on the climate stripes plot. It can be visually more striking and can be more science friendly while still conveying the main colour temperature message of the climate stripes plot

Usage

1
2
3
4
5
6
7
8
superimpose.data.f(
  time.vector,
  temperature.vector,
  data.colour = "yellow",
  spline = T,
  spline.colour = "white",
  ...
)

Arguments

time.vector

the time series vector

temperature.vector

a times series of any environmental variable (climate stripes have been developed for temperature) whose values correspond to the time vector

data.colour

colour of the data line to superimpose

spline

fit a spline (gam) and superimpose in addition to the data

spline.colour

colour of the spline line to superimpose

...

additional arguments to the trend line that "lines" will accept, see par

Details

Superimposes data after rescaling from 0 to 1, i.e. the lowest point in the series will be at the bottom of the graph and the highest at the top. The gam is calculated using mgcv default for gam

See Also

lines par mgcv::gam smooth.spline


duplisea/climatestripes documentation built on March 27, 2021, 11:47 p.m.