plot.MixtComp {RMixtCompUtilities} | R Documentation |
Plot of a MixtComp object
Description
Plot of a MixtComp object
Usage
## S3 method for class 'MixtComp'
plot(
x,
nVarMaxToPlot = 3,
pkg = c("ggplot2", "plotly"),
plotData = c("CI", "Boxplot"),
...
)
Arguments
x |
MixtComp object |
nVarMaxToPlot |
number of variables to display |
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 |
Author(s)
Quentin Grimonprez
See Also
mixtCompLearn
mixtCompPredict
Other plot:
heatmapClass()
,
heatmapTikSorted()
,
heatmapVar()
,
histMisclassif()
,
plotConvergence()
,
plotDataBoxplot()
,
plotDataCI()
,
plotDiscrimClass()
,
plotDiscrimVar()
,
plotParamConvergence()
,
plotProportion()
Examples
if (requireNamespace("RMixtCompIO", quietly = TRUE)) {
dataLearn <- list(
var1 = as.character(c(rnorm(50, -2, 0.8), rnorm(50, 2, 0.8))),
var2 = as.character(c(rnorm(50, 2), rpois(50, 8)))
)
model <- list(
var1 = list(type = "Gaussian", paramStr = ""),
var2 = list(type = "Poisson", paramStr = "")
)
algo <- list(
nClass = 2,
nInd = 100,
nbBurnInIter = 100,
nbIter = 100,
nbGibbsBurnInIter = 100,
nbGibbsIter = 100,
nInitPerClass = 3,
nSemTry = 20,
confidenceLevel = 0.95,
ratioStableCriterion = 0.95,
nStableCriterion = 10,
mode = "learn"
)
resLearn <-RMixtCompIO::rmcMultiRun(algo, dataLearn, model, nRun = 3)
plot(resLearn)
}
[Package RMixtCompUtilities version 4.1.6 Index]