plot.rv {rv} | R Documentation |
Draw a "random scatter plot". Currently only the y coordinate can be random, so intervals are plotted for each fixed x-coordinate..
## S3 method for class 'rv': plot(x, y, what=c("95%","50%","mean","median"), ylim=range(sims(y)), xlim=range(sims(x)), rvcol=c("grey20", "grey40"), ...)
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 |
(This function is still under development.)
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
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.