errorbars {oce} | R Documentation |
Draw Error Bars on an Existing xy Diagram
Description
Draw Error Bars on an Existing xy Diagram
Usage
errorbars(x, y, xe, ye, percent = FALSE, style = 0, length = 0.025, ...)
Arguments
x , y |
coordinates of points on the existing plot. |
xe , ye |
errors on x and y coordinates of points on the existing plot, each either a single number or a vector of length identical to that of the corresponding coordinate. |
percent |
boolean flag indicating whether |
style |
indication of the style of error bar. Using |
length |
length of endcaps, for |
... |
graphical parameters passed to the code that produces the error
bars, e.g. to |
Author(s)
Dan Kelley
Examples
library(oce)
data(ctd)
S <- ctd[["salinity"]]
T <- ctd[["temperature"]]
plot(S, T)
errorbars(S, T, 0.05, 0.5)
[Package oce version 1.8-2 Index]