Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotAllCriterion

~ Function: plotAllCriterion ~


Description

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

Usage

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

###############
### 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)

longitudinalData

Longitudinal Data

v2.4.1
GPL (>= 2)
Authors
Christophe Genolini [cre, aut], Bruno Falissard [ctb], Dai Fang [ctb], Luke Tierney [ctb]
Initial release
2016-02-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.