Polyplot | R Documentation |
A wrapper function for the polygon
function to draw error shadings
(or confidence intervals) on a line plot.
Polyplot(x, y1, y2, col = "black", alpha = 0.2, ...)
x |
numeric vector of x values of the error band. |
y1 |
numeric vector for the upper bound of the error band; must be of
the same length as |
y2 |
numeric vector for the lower bound of the error band; must be of
the same length as |
col |
colour of the error band. |
alpha |
opacity factor for |
... |
additional parameters which are passed to |
Thomas Laepple, Thomas Münch
polygon
x <- 1 : 10
plot(x, type = "n", xlab = "x", ylab = "y")
Polyplot(x, y1 = x + 2, y2 = x - 2)
lines(x, lwd = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.