Learn R Programming

rv (version 0.949)

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

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

References

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

Examples

Run this code
require(rv)
  x <- rvnorm(30)
  hist(x)

Run the code above in your browser using DataLab