hist.rv {rv}R Documentation

Histogram of a random vector

Description

hist.rv shows a grid of histograms generated from random draws of the random vector argument.

Usage

 ## S3 method for class 'rv':
 hist(x, grid = c(4, 5), xlim = x.range, main = paste(xname, "simulation"), ...)

Arguments

x an object
grid a vector of two numbers, indicating the size of the grid to plot the histograms
xlim x limits
main main title
... Other arguments passed on to hist

Details

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 <- rvnorm(30)
  hist(x)

[Package rv version 0.925 Index]