R/error.bars.R

Defines functions error.bars

Documented in error.bars

error.bars<-function(x,y,upper,lower=upper,length=0.1,...){
if(length(x)!=length(y)|length(y)!=length(lower)|length(lower)!=length(upper))
stop("vectors must be same length")
arrows(x,y+upper,x,y-lower,angle=90,code=3,length=length, ...)
}

Try the windex package in your browser

Any scripts or data that you put into this service are public.

windex documentation built on Oct. 11, 2023, 5:16 p.m.