ErrorBars | R Documentation |
Add error bars to an existing point plot.
ErrorBars(
x,
y,
upper,
lower = upper,
width = 0.05,
col = "black",
lwd = 1,
lty = 1
)
x |
x coordinates of the points for which error bars are to be added. |
y |
y coordinates of the points for which error bars are to be added. |
upper |
upper value of the error interval relative to |
lower |
same as |
width |
the width of the error bar drawing as a fraction of the x user
coordinate range ( |
col |
the colour of the error bars; default "black". |
lwd |
the line width of the error bars; default |
lty |
the line type of the error bars; default are solid lines
( |
Thomas Münch
x <- 1 : 10
plot(x, ylim = c(0, 12))
ErrorBars(x, y = x, upper = 2, lower = 1)
ErrorBars(x, y = x, upper = 0.5, col = "red", width = 0.025)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.