plot.bayes_mixture {BayesMultiMode}R Documentation

Plot method for bayes_mixture objects

Description

Plot an estimated mixture for a given number of draws with a frequency distribution of the data.

Usage

## S3 method for class 'bayes_mixture'
plot(x, draws = 250, draw = NULL, bins = 30, alpha = 0.1, ...)

Arguments

x

An object of class bayes_mixture.

draws

The number of MCMC draws to plot.

draw

Plot estimated mixture in draw draw; note that draws is discarded. Default is NULL.

bins

(for continuous mixtures) Number of bins for the histogram of the data. Passed to geom_histogram().

alpha

transparency of the density lines. Default is 0.1. Should be greater than 0 and below or equal to 1.

...

Not used.


[Package BayesMultiMode version 0.7.1 Index]