error.band: Plots error as a polygon on a base R plot, maybe, I haven't...

View source: R/error.bar.r

error.bandR Documentation

Plots error as a polygon on a base R plot, maybe, I haven't really tested or used this much

Description

Plots error as a polygon on a base R plot, maybe, I haven't really tested or used this much

Usage

error.band(x, y, upper.y, lower.y = upper.y, col = "gray",
  border = NA, interval.type = "dist", ...)

Arguments

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

Details

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


evanchildress/plotHacks documentation built on July 29, 2022, 5 a.m.