clustCoDa_qmode: Q-mode cluster analysis for compositional parts

Description Usage Arguments Value Author(s) References Examples

View source: R/clustCoDa_qmode.R

Description

Clustering using the variation matrix of compositional parts

Usage

1
clustCoDa_qmode(x, method = "ward.D2")

Arguments

x

compositional data represented as a data.frame

method

hclust method

Value

a hclust object

Author(s)

Matthias Templ (accessing the basic features of hclust that are all written by other authors)

References

Filzmoser, P., Hron, K. Templ, M. (2018) Applied Compositional Data Analysis, Springer, Cham.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(expenditures) 
x <- expenditures
cl <- clustCoDa_qmode(x)
## Not run: 
require(reshape2)
plot(cl)
cl2 <- clustCoDa_qmode(x, method = "single")
plot(cl2)

## End(Not run)

Example output

Loading required package: robustbase
Loading required package: ggplot2
Loading required package: data.table
Loading required package: e1071
Loading required package: pls

Attaching package: 'pls'

The following object is masked from 'package:stats':

    loadings

sROC 0.1-2 loaded

Attaching package: 'robCompositions'

The following object is masked from 'package:robustbase':

    alcohol

Loading required package: reshape2

Attaching package: 'reshape2'

The following objects are masked from 'package:data.table':

    dcast, melt

robCompositions documentation built on Jan. 13, 2021, 10:07 p.m.