plot.rv {rv}R Documentation

Plotting Scatterplots of Random Variable Objects

Description

Draw a "random scatter plot".

Usage

  ## S3 method for class 'rv':
  plot(x, y, ...)

Arguments

x random or fixed vector
y random or fixed vector
... other arguments passed on to plot

Details

If a component x is fixed and the corresponding component of y is random, the resulting `point' is a vertical uncertainty ('credible') interval.

If a component y is fixed and the corresponding component of x is random, the resulting `point' is a horizontal uncertainty ('credible') interval.

If a component of x and the corresponding component of y is random, the resulting `point' is a scatterplot of simulations from the joint distribution of code{(x,y)}.

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

See Also

mlplot

Examples

  x <- 1:30
  y <- rvnorm(mean=x, sd=1)
  ## Not run: plot(x,y)
  ## Not run: plot(y,x)
  ## Not run: plot(y)

[Package rv version 0.949 Index]