plot.rv {rv}R Documentation

Plotting Random Vectors

Description

Draw a "random scatter plot". Currently only the y coordinate can be random, so intervals are plotted for each fixed x-coordinate..

Usage

  ## S3 method for class 'rv':
  plot(x, y, what=c("95%","50%","mean","median"), ylim=range(sims(y)), xlim=range(sims(x)), rvcol=c("green", "red"), ...)

Arguments

x (optional) fixed x-coordinate
y random vector
what what to plot: an interval or a dot
xlim the x limits of the plot
ylim the y limits of the plot
rvcol colors for the intervals (passed on to link{points.rv})
... other arguments passed on to plot

Details

(This function is still under development.)

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.

Examples

  #
  x <- 1:30
  y <- rvnorm(mean=x, sd=1)
  ## Not run: plot.rv(x,y)  # x is not an rv, so be explicit and specify plot.rv 
  ## Not run: plot(y)       # y is an rv, so R knows to call plot.rv.

[Package rv version 0.911 Index]