hist.rv: Histogram of a random vector

Description Usage Arguments Author(s) References Examples

View source: R/hist_rv.R

Description

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

Usage

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

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

freq

logical; if FALSE, plots as probability density, as it should.

...

Other arguments passed on to hist

Author(s)

Jouni Kerman jouni@kerman.com

References

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").

Examples

1
2
3
  
  x <- rvnorm(30)
  hist(x)

rv documentation built on May 19, 2017, 7:09 p.m.

Search within the rv package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.