plotwitherror | R Documentation |
Plot command for XY scatterplots based on plot and points which provides support for multiple, non-symmetric error bars. Error bars are drawn as vertical or horizontal lines originating from the point with narrow, perpendicular lines at the end of the error bar (end caps). When multiple errors are drawn, the width of the perpendicular line increases from the innermost error bar to the outermost one. Different summation methods for the individual errors are supported.
plotwitherror(x, y, dy, ylim = NULL, dx, xlim = NULL, mdx, mdy, errsum.method = "linear.quadrature", rep = FALSE, col = "black", ...)
x |
vector of x coordinates |
y |
vector of y coordinates |
dy |
one of:
|
ylim |
limits for y-axis |
dx |
Same as |
xlim |
limits for x-axis |
mdx |
Support for non-symmetric error bars. Same as |
mdy |
Same as |
errsum.method |
Determines how the invidual errors should be summed for display purposes. Valid argument values are:
|
rep |
If set to |
col |
colour of plotted data |
... |
any graphic options passed over to |
a plot with error bars is drawn on the current device
Returns for convenience a list with elements xlim
and ylim
representing the
x- and y-limits chosen by the routine.
Carsten Urbach, urbach@hiskp.uni-bonn.de
Bartosz
Kostrzewa, bartosz.kostrzewa@desy.de
plot
, points
# Create some random data, set one error to zero. x <- 1:50 y <- runif(50, 0, 1) dy <- runif(50, 0.1, 0.2) dy[4] <- 0 plotwitherror(x, y, dy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.