Learn R Programming

lmSupport (version 2.9.13)

figErrBars: Wrapper for standarized use of error bars

Description

Wrapper function for standardized use of error bars with segments() with lab defaults for display

Usage

figErrBars(x, y, yplus, yminus, errbars.cap = NULL, 
       errbars.lwd = NULL, errbars.col = NULL)

Arguments

x,y, yplus, yminus

coordinate vectors of x and y points for error bars

errbars.cap

Width of caps on error bars. Accessed from options if NULL

errbars.lwd

Line width. Accessed from options if NULL

errbars.col

Line color. Accessed from options if NULL

Value

None

See Also

lines(), figLabDefaults(), figSetDefaults(), figNewDevice(), figLines(),figPoints()

Examples

Run this code
# NOT RUN {
figNewDevice()
figPlotRegion(x=c(0,5), y=c(0,10))
figLines(c(0,10),c(0,10))
figAxis(side=1,lab.text='X-axis 1', scale.at=seq(from=0,to=10,by=2))
figAxis(side=2,lab.text='Startle Response', scale.at=seq(from=0,to=10,by=2))
# }

Run the code above in your browser using DataLab