plot.MixtCompLearn {RMixtComp} | R 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
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")
[Package RMixtComp version 4.1.4 Index]