plot_mixture_components: Wrapper function for 'plot.Mclust()'

View source: R/AMIS_outputs.R

plot_mixture_componentsR Documentation

Wrapper function for plot.Mclust()

Description

Wrapper function for plot.Mclust()

Usage

plot_mixture_components(
  x,
  what = "uncertainty",
  iteration = NULL,
  datapoints = "proposed",
  main = NULL,
  xlim = NULL,
  ylim = NULL,
  ...
)

Arguments

x

The output from the function amis().

what

A string specifying the type of plot requested:

"uncertainty"

A plot of classification uncertainty (default)

"density"

A plot of estimated density

"BIC"

A plot showing BIC values used to choose the number of components

iteration

Integer indicating which iteration the plot should be about. If NULL (default), the plot will be for the final iteration. See more details in plot.Mclust().

datapoints

A string specifying what the datapoints should represent in the plot of classification uncertainty:

"proposed"

datapoints will represent the samples simulated from the mixture. The colours indicate which mixture components the samples were simulated from.

"fitted"

datapoints will show the samples that the mixture model was fitted to, i.e. weighted samples from the previous iteration. The colour of a datapoint indicates the most likely mixture component the sample belongs to.

main

Title of the plot. If NULL, the default title will be displayed. Set to NA for omitting title.

xlim

The x limits of the plots. Default to NULL

ylim

The y limits of the plots. Default to NULL.

...

Other arguments to match the plot.Mclust() function.

Details

For illustrative examples, see amis().

Value

A plot for model-based clustering results.


AMISforInfectiousDiseases documentation built on April 4, 2025, 1:45 a.m.