error.band | R Documentation |
Plots error as a polygon on a base R plot, maybe, I haven't really tested or used this much
error.band(x, y, upper.y, lower.y = upper.y, col = "gray", border = NA, interval.type = "dist", ...)
x |
a numeric vector palcement of error bars on the x-axis |
y |
a numeric vector of the y-origins of the error bars |
upper.y |
A vector of the upper y limits for error bars |
lower.y |
A vector of the lower y limits for error bars, set to upper.y by default |
col |
Color of the polygon |
border |
Color for the border of the polygon |
interval.type |
If this is set to "dist", upper.y is set to y+upper.y |
Puts error bars on a plot. The default has only y error bars, you must define the vectors x,y, and upper.y (your error vector) at a minimum. Lower and upper error can be set separately by also defining lower.y. To display x error bars set x.bar=T and upper.x to a vector containing your x error. type is set to either "dist" as in distance from the mean or "value" which is the actual lower/upper bound
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.