plotDensityClusVisu: Function for visualizing the clustering results

Description Usage Arguments Examples

View source: R/plot.R

Description

Function for visualizing the clustering results

Usage

1
2
plotDensityClusVisu(res, dim = c(1, 2), threshold = 0.95, add.obs = FALSE,
  positionlegend = "topright", xlim = NULL, ylim = NULL)

Arguments

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.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# Package loading
require(Rmixmod)

# Data loading (categorical data)
data(birds)

# Model-based clustering with 3 components
resmixmod <- mixmodCluster(birds, 3)

# Inference of the parameters used for results visualization
# (specific for Rmixmod results)
resvisu <- clusvisMixmod(resmixmod)

# Component interpretation graph
plotDensityClusVisu(resvisu)

# Scatter-plot of the observation memberships
plotDensityClusVisu(resvisu,  add.obs = TRUE)

## End(Not run)

ClusVis documentation built on April 20, 2018, 1:04 a.m.