plot.MixtCompLearn: Plot of a _MixtCompLearn_ object

View source: R/MIXTCOMP_methods.R

plot.MixtCompLearnR Documentation

Plot of a MixtCompLearn object

Description

Plot of a MixtCompLearn object

Usage

## S3 method for class 'MixtCompLearn'
plot(
  x,
  nVarMaxToPlot = 3,
  nClass = NULL,
  pkg = c("ggplot2", "plotly"),
  plotData = c("CI", "Boxplot"),
  ...
)

Arguments

x

MixtCompLearn object

nVarMaxToPlot

number of variables to display

nClass

number of classes of the model to plot

pkg

"ggplot2" or "plotly". Package used to plot

plotData

"CI" or "Boxplot". If "CI", uses plotDataCI function. If "Boxplot", uses plotDataBoxplot

...

extra parameter for plotDataCI or plotDataBoxplot

Value

ggplot2 or plotly object

Author(s)

Quentin Grimonprez

See Also

mixtCompLearn mixtCompPredict

Other plot: plotCrit()

Examples

data(iris)

# run RMixtComp in unsupervised clustering mode and in basic mode
resLearn <- mixtCompLearn(iris[, -5], nClass = 2:4, nCore = 1)

plot(resLearn)
plot(resLearn, nClass = 3, plotData = "Boxplot")


RMixtComp documentation built on July 9, 2023, 6:06 p.m.