Learn R Programming

errors (version 0.4.2)

plot.errors: Scatterplot with Error Bars

Description

S3 method for errors objects which automatically prints the error bars.

Usage

# S3 method for errors
plot(x, y, ...)

Arguments

x, y

the x and y arguments provide the x and y coordinates for the plot. Any reasonable way of defining the coordinates is acceptable. See the function xy.coords for details. If supplied separately, they must be of the same length.

...

additional arguments (see plot).

Examples

Run this code
cars <- as.matrix(cars)
cars <- as.data.frame(set_errors(cars, cars * 0.05))
plot(cars$speed)
plot(cars)

Run the code above in your browser using DataLab