Learn R Programming

PUGMM (version 0.1.2)

plot.pugmm: Plotting method for pugmm object

Description

Plots for Parsimonious Ultrametric Gaussian Mixture Models results, such as BIC and path diagrams.

Usage

# S3 method for pugmm
plot(x, what = NULL, nrow = NULL, ncol = NULL, cluster_names = NULL, ...)

Value

No return value since this is a plot method.

Arguments

x

Output from pugmm.

what

A string specifying the type of graph requested. Available choices are:

"BIC"

Plot of BIC values for the fitted models. For each \(G\), the best BIC among the ones corresponding to different \(m\) is displayed.

"Path Diagram"

Path diagram representation of the extended ultrametric covariance matrix per component for the best model.

nrow

Number of rows in the graphical window. A new graphical window is opened every 6 plots, i.e., components of pugmm.

ncol

Number of columns in the graphical window. A new graphical window is opened every 6 plots, i.e., components of pugmm.

cluster_names

String of dimension \(G\) with the clusters/components' name.

...

Other graphics parameters.

See Also

pugmm()

Examples

Run this code
data(penguins)
x <- scale(penguins[, 2:5])
pugmm.penguins <- pugmm(x, 3, 1)
plot.pugmm(pugmm.penguins, what = c("BIC", "Path Diagram"))

Run the code above in your browser using DataLab