Learn R Programming

rv (version 1.1.0)

abline.rv: Add (Random) Straight Lines to a Plot

Description

abline, with random arguments, plots a sample of lines corresponding to of simulations of rv object x.

Usage

abline.rv (a = NULL, b = NULL, h = NULL, v = NULL, ...)

Arguments

a
intercept
b
slope
h
y-value(s) horizontal line(s)
v
x-value(s) horizontal line(s)
...
further arguments passed to abline

Details

This is a version of abline that accepts random variable objects for the arguments a, b, h, or v.

The number of lines is determined by rvpar("line.sample"), default 20.

See the original help page in package `graphics.' EXPERIMENTAL.

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").

Examples

Run this code
demo("rvexample1")

Run the code above in your browser using DataLab