errorbars {oce} | R Documentation |
Draw error bars on an existing xy diagram
errorbars(x, y, xe, ye, percent = FALSE, style = 0, length = 0.025, ...)
x |
x coordinates of points on the existing plot. |
y |
y coordinates of points on the existing plot. |
xe |
error on x coordinates of points on the existing plot, either a
single number or a vector of length identical to that of |
ye |
as |
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 |
Dan Kelley
library(oce) data(ctd) S <- ctd[["salinity"]] T <- ctd[["temperature"]] plot(S, T) errorbars(S, T, 0.05, 0.5)