errorbars | R Documentation |
Draw Error Bars on an Existing xy Diagram
errorbars(x, y, xe, ye, percent = FALSE, style = 0, length = 0.025, ...)
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 |
Dan Kelley
library(oce)
data(ctd)
S <- ctd[["salinity"]]
T <- ctd[["temperature"]]
plot(S, T)
errorbars(S, T, 0.05, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.