Description Usage Arguments Examples
Function for visualizing the clustering results
1 2 3 4 5 |
res |
object return by function clusvis or clusvis |
dim |
numeric. This vector of size two choose the axes to represent. |
threshold |
numeric. It contains the thersholds used for computing the level curves. |
add.obs |
boolean. If TRUE, coordinnates of the observations are plotted. |
positionlegend |
character. It specifies the legend location. |
xlim |
numeric. It specifies the range of x-axis. |
ylim |
numeric. It specifies the range of y-axis. |
colset |
character. It specifies the colors of the observations per class. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
# Package loading
require(Rmixmod)
# Data loading (categorical data)
data("congress")
# Model-based clustering with 4 components
set.seed(123)
res <- mixmodCluster(congress[,-1], 4, strategy = mixmodStrategy(nbTryInInit = 500, nbTry=25))
# Inference of the parameters used for results visualization
# (specific for Rmixmod results)
# It is better because probabilities of classification are generated
# by using the model parameters
resvisu <- clusvisMixmod(res)
# Component interpretation graph
plotDensityClusVisu(resvisu)
# Scatter-plot of the observation memberships
plotDensityClusVisu(resvisu, add.obs = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.