plotAllCriterion: ~ Function: plotAllCriterion ~

Description Usage Arguments Details Value Examples

Description

This function graphically displays the quality criterion of all the Partition of a ListPartition object.

Usage

1
plotAllCriterion(x, criterion=CRITERION_NAMES[1:5],standardized = TRUE)

Arguments

x

[ClusterLongData]: object whose quality criterion should be displayed.

criterion

[character]: name of the criterion(s) to plot. It can either display all the value for a single specific criterion or display several criterion, only the best value for each clusters number and for each criterion.

standardized

[logical]: If standardized=TRUE, all the criterion will be mapped into [0,1]. This makes them more easely comparable.

Details

This function display graphically several quality criterion, probably to decide the best clusters' number.

Value

No value are return. A graph is printed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
###############
### Data generation
data(artificialLongData)
traj <- as.matrix(artificialLongData[,-1])

### Some clustering
listPart <- listPartition()
listPart["add"] <- partition(rep(c("A","B"),time=100),traj)
listPart["add"] <- partition(rep(c("A","B","B","B"),time=50),traj)
listPart["add"] <- partition(rep(c("A","B","C","A"),time=50),traj)
listPart["add"] <- partition(rep(c("A","B","C","D"),time=50),traj)
ordered(listPart)

################
### graphical display
plotAllCriterion(listPart)
plotAllCriterion(listPart,criterion=CRITERION_NAMES[1:5],TRUE)

Example output

Loading required package: clv
Loading required package: cluster
Loading required package: class
Loading required package: rgl
Loading required package: misc3d
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
     [,1] [,2]
[1,]    2    1
[2,]    1   NA
[3,]    1   NA

longitudinalData documentation built on May 2, 2019, 8:53 a.m.