shades | R Documentation |
This intermediate-level function will plot a time series with the quantiles shown with transparency values.
shades(
x,
y,
col = "black",
res = 10,
border = NA,
interpolate = FALSE,
method = "symmetric",
na.rm = FALSE
)
x |
|
y |
|
col |
|
res |
|
border |
|
interpolate |
|
method |
|
na.rm |
|
The function has no return value.
# some random values accross the Phanerozoic
data(stages)
tsplot(stages, boxes="sys", shading="series", ylim=c(-5,5), ylab=c("normal distributions"))
randVar <- t(sapply(1:95, FUN=function(x){rnorm(150, 0,1)}))
shades(stages$mid, randVar, col="blue", res=10,method="symmetric")
# a bottom-bounded distribution (log normal)
tsplot(stages, boxes="sys", shading="series", ylim=c(0,30), ylab="log-normal distributions")
randVar <- t(sapply(1:95, FUN=function(x){rlnorm(150, 0,1)}))
shades(stages$mid, randVar, col="blue", res=c(0,0.33, 0.66, 1),method="decrease")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.