Learn R Programming

RMixtComp (version 4.0.1)

plotCrit: Plot BIC and ICL

Description

Plot BIC and ICL

Usage

plotCrit(output, pkg = c("ggplot2", "plotly"), ...)

Arguments

output

MixtCompLearn object

pkg

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

...

arguments to be passed to plot_ly

See Also

Other plot: plot.MixtCompLearn

Examples

Run this code
# NOT RUN {
data(simData)
 
# define the algorithm's parameters
algo <- createAlgo()

# keep only 3 variables
model <- simData$model$unsupervised[c("Gaussian1", "Poisson1", "Categorical1")]

# run RMixtComp in unsupervised clustering mode + data as matrix
res <- mixtCompLearn(simData$dataLearn$matrix, model, algo, nClass = 2:4)

# plot
plotCrit(res)

# }

Run the code above in your browser using DataLab