errorbar | R Documentation |
Create a errorbar, or add errorbars to an existing plot.
errorbar(x, y, xupper = NULL, xlower = NULL, yupper = NULL,
ylower = NULL, col = "black", lty = 1)
x, y |
numeric vectors, the coordinates of points at which the error bar are to be plotted. |
xupper, xlower |
numeric vectors, error value of X axis, the X axis of
error bars are from |
yupper, ylower |
numeric vectors, error value of Y axis, the Y axis of
error bars are from |
col, lty |
graphical parameters, color and line type for the lines, more
details see |
x <- seq(0, 2 * pi, length.out = 100)
y <- sin(x)
plot(x, y, type = 'l')
errorbar(x, y, yupper = 0.1, ylower = 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.