Description Usage Arguments Details See Also
View source: R/climate.stripes.r
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
1 2 3 4 5 6 7 8 | superimpose.data.f(
time.vector,
temperature.vector,
data.colour = "yellow",
spline = T,
spline.colour = "white",
...
)
|
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 |
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
lines par mgcv::gam smooth.spline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.