Learn R Programming

RMixtComp (version 4.0.2)

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"), ...)

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

...

extra parameter for plotDataCI

See Also

mixtCompLearn mixtCompPredict

Other plot: plotCrit

Examples

Run this code
# NOT RUN {
data(iris)

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

plot(resLearn)
plot(resLearn, nClass = 3)

# }

Run the code above in your browser using DataLab