error.bar | R Documentation |
Draw error bars with specified error levels at the specified coordinates.
error.bar(
x,
y,
sigma,
lower,
upper,
polygon = FALSE,
col = "grey30",
border,
add = TRUE,
...
)
x |
Horizontal coordinates. |
y |
Central value(s) or lower and upper bound(s). |
sigma |
Error deviation from |
lower |
Lower error bound or deviation (if |
upper |
Upper error bound or deviation (if |
add |
Logical value specifying whether the error bars are to be added to the current plot (Default
is |
# Constant error:
error.bar(1:10, y = rnorm(10), sigma = 2, add = FALSE)
# Variable error:
error.bar(1:10, y = rnorm(10), sigma = 0.5 + runif(10), add = FALSE)
# Explicit bounds:
error.bar(1:10, lower = 2, upper = 2 + runif(10), add = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.