errorbar {beginr}R Documentation

add error bars to a scatterplot.

Description

add error bars to a scatterplot.

Usage

errorbar(x, y, xupper = NULL, xlower = NULL, yupper = NULL, ylower = NULL, 
    col = "black", lty = 1)

Arguments

x

numeric

y

numeric

xupper

numeric

xlower

numeric

yupper

numeric

ylower

numeric

col

colors

lty

numeric

Value

errorbars in a plot

Examples

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)


[Package beginr version 0.1.7 Index]