hist.mc: Histogram of a Monte Carlo Simulation

View source: R/hist.mc.R

hist.mcR Documentation

Histogram of a Monte Carlo Simulation

Description

Shows a histogram of a ‘⁠mcnode⁠’ or a ‘⁠mc⁠’ object.

Usage

## S3 method for class 'mc'
hist(x, griddim = NULL, xlab = names(x), ylab = "Frequency", main = "", ...)

## S3 method for class 'mcnode'
hist(x, ...)

Arguments

x

an ‘⁠mcnode⁠’ or an ‘⁠mc⁠’ object.

griddim

a vector of two integers, indicating the size of the grid of plots. If ‘⁠NULL⁠’, the grid is calculated to produce a "nice" graph.

xlab

a vector of labels for the x-axis. May be recycled.

ylab

a vector of labels for the y-axis. May be recycled.

main

a vector of main titles of histograms. May be recycled.

...

other arguments to be passed to all calls of ‘⁠hist⁠’.

Value

‘⁠invisible()⁠’ (called for side effects).

Note

For two-dimensional ‘⁠mc⁠’ objects, the histogram is based on all data (variability and uncertainty) pooled together.

See Also

gghist for a ggplot2 version.

Examples

data(total)
hist(xVUM3)
hist(total)

mc2d documentation built on Oct. 23, 2026, 1:06 a.m.