Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ctPoly

Plots uncertainty bands with shading


Description

Plots uncertainty bands with shading

Usage

ctPoly(x, y, ylow, yhigh, steps = 20, ...)

Arguments

x

x values

y

y values

ylow

lower limits of y

yhigh

upper limits of y

steps

number of polygons to overlay - higher integers lead to smoother changes in transparency between y and yhigh / ylow.

...

arguments to pass to polygon()

Value

Nothing. Adds a polygon to existing plot.

Examples

plot(0:100,sqrt(0:100),type='l')
ctPoly(x=0:100, y=sqrt(0:100), 
yhigh=sqrt(0:100) - runif(101), 
ylow=sqrt(0:100) + runif(101),
col=adjustcolor('red',alpha.f=.1))

ctsem

Continuous Time Structural Equation Modelling

v3.4.3
GPL-3
Authors
Charles Driver [aut, cre, cph], Manuel Voelkle [aut, cph], Han Oud [aut, cph], Trustees of Columbia University [cph]
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.