hist.rv: 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
grid
a vector of two numbers, indicating the size of the grid to plot the histograms
...
Other arguments passed on to hist References
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.Examples
Run this coderequire(rv)
x <- rvnorm(30)
hist(x)
Run the code above in your browser using DataLab