plot_CompDist: Plots for the number of components

Description Usage Arguments Author(s) See Also Examples

View source: R/mcmc_plots.R

Description

The function produces two plots: the trace plot for the number of components based on all realizations of a BDMCMC fit, and a barplot describing the distribution of the number of components.

For examples see

http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#plot_CompDist

Usage

1
plot_CompDist(fit, open_new_window = FALSE)

Arguments

fit

Object of class bdmcmc_res.

open_new_window

Open new windows for the two plots.

Author(s)

Sakis Micheas

See Also

est_mix_bdmcmc

Examples

1
2
3
4
fitBD <- est_mix_bdmcmc(spatstat::redwood, m = 10)
plot_CompDist(fitBD)
CAfitBD=est_mix_bdmcmc(pp = CAQuakes2014.RichterOver3.0, m = 10)
plot_CompDist(CAfitBD)

sppmix documentation built on Jan. 13, 2021, 10:04 p.m.