Learn R Programming

ctsem (version 2.1.0)

ctPoly: Plots uncertainty bands

Description

Plots uncertainty bands

Usage

ctPoly(x, ylow, yhigh, ...)

Arguments

x
x values
ylow
lower limits of y
yhigh
upper limits of y
...
arguments to pass to polygon()

Value

Nothing. Adds a polygon to existing plot.

Examples

Run this code
plot(0:100,sqrt(0:100),type='l')
ctPoly(0:100, sqrt(0:100) - runif(101), sqrt(0:100) + runif(101),
col=adjustcolor('red',alpha.f=.1),border=NA)

Run the code above in your browser using DataLab