Skip to contents

Number of Components, Component ranking, trace plot of alpha values and trace plot of log probability density.

Usage

plot_alpha(x, nburn, thinning, ...)

Arguments

x

object class 'dpmm_fit'.

nburn

Iterations to be discarded in the plot of component rankings

thinning

Iterations

...

other parameters used by ggplot2.

Value

A 'ggplot' panel plot.

Examples

if (FALSE) {
## load dataset
data(dataset_1)

## fit model
posteriors <- runModel(dataset_1, 
                       mcmc_iterations = 100,
                       L = 6, 
                       mcmc_chains = 2, 
                       standardise = TRUE)
               
                              
## diagnostic plot
plot_alpha(posteriors, nburn = 50, thinning = 1)
}