Learn R Programming

mcmcplots (version 0.2)

denoverplot1: Plot Overlaying Densities

Description

Creates a plot containing overlaying kernel density estimates from different MCMC simulations. This function is used in the denoverplot function to produce plots of overlaying densities for parameters in common from two different MCMC simulations.

Usage

denoverplot1(..., col = mcmcplotsPalette(n), lty = 1, style = c("gray", "plain"), gpar = NULL)

Arguments

...
one or more vectors or a list containing one or more vectors to be plotted.
col
one or more colors for the densities.
lty
types of lines to plot.
style
if "gray", then the plotting region is printed with a gray background, otherwise the default plotting region is used.
gpar
a list of additional graphical parameters to be passed to the plotting function. See help for par.

Value

  • Creates a plot.

Details

None.

References

None

See Also

denoverplot

Examples

Run this code
denoverplot1(rnorm(1000), rnorm(1000))
denoverplot1(rnorm(1000, 0.0, 1.0), rnorm(1000, 0.1, 1.0), style="plain")
denoverplot1(list(rgamma(1000, 1, 1), rgamma(1000, 1, 1)))

Run the code above in your browser using DataLab