plot.bayes_mixture: Plot method for 'bayes_mixture' objects

View source: R/plot_methods.R

plot.bayes_mixtureR 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.


BayesMultiMode documentation built on May 29, 2024, 11:01 a.m.