Learn R Programming

RMixtComp (version 4.1.4)

plot.MixtCompLearn: Plot of a MixtCompLearn object

Description

Plot of a MixtCompLearn object

Usage

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

Value

ggplot2 or plotly object

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

Author

Quentin Grimonprez

See Also

mixtCompLearn mixtCompPredict

Other plot: plotCrit()

Examples

Run this code
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")

Run the code above in your browser using DataLab