powered by
hist.rv shows a grid of histograms generated from random draws of the random vector argument.
hist.rv
# S3 method for rv hist( x, grid = c(4, 5), xlim = x.range, main = paste(xname, "simulation"), freq = FALSE, ... )
an object
a vector of two numbers, indicating the size of the grid to plot the histograms
x limits
main title
logical; if FALSE, plots as probability density, as it should.
FALSE
Other arguments passed on to hist
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv").
vignette("rv")
# NOT RUN { # } # NOT RUN { x <- rvnorm(30) hist(x) # }
Run the code above in your browser using DataLab