draw_error_bars | R Documentation |
Adds error bars to an existing plot.
draw_error_bars(
x,
lower = NULL,
upper = NULL,
arrow = TRUE,
flip = FALSE,
length = 0.05,
code = 3,
angle = 90,
border = NA,
columns = NULL,
...
)
x |
Either a numeric vector or a data frame. If a numeric vector, specifies the positions at which error bars should be drawn. |
lower |
A numeric vector with the lower limits for error bars. |
upper |
A numeric vector with the upper limits for error bars. |
arrow |
Logical; if |
flip |
Logical; if |
length |
The length of the arrowhead for the call to graphics::arrows. |
code |
Integer controlling whether to draw an arrowhead at the start (1), end (2), or at both ends (3) of the line for the call to graphics::arrows. |
angle |
The angle of the lines creating the arrowhead for the call to graphics::arrows. Using 90 degrees results in a flat bar per typical error bars. |
border |
The color of the border for calls to graphics::polygon. |
columns |
A character vector, the columns for the
positions and lower/upper limits, respectively, if
|
... |
Additional plotting parameters for either the graphics::arrows or graphics::polygon. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.