CorComp: Perform pair-wise correlation of clusters based on chosen...

Description Usage Arguments Value

View source: R/CorComp2.R

Description

Perform pair-wise correlation of clusters based on chosen statistics

Usage

1
2
3
CorComp(compare, dataset = NULL, stat = NULL, plot = TRUE,
  heatmap = TRUE, group_n = NULL, cor_method = "pearson",
  cl_method = "ward.D2", ...)

Arguments

compare

a compare object

dataset

The dataset that you want to depict. It can be a single character or a numeric value refers to the element of the compare object.

stat

A character or a numeric value that refers to the statistics (elemnt of the dataset) you want ot depict.

plot

Logical. If FALSE you have to define the group_n argumentum and a dataframe is returned with cluster names and groups a according hierachical clustering. This dataframe can be inputed to the GoupComp function. Otherwise you can plot a dendrogram with our withour a heatmap

heatmap

Logical. Whether a heatmap should be ploted. Only when heatmap is FALSE you can draw rectangles around hierarchical cluster.

group_n

Numeric. Defining the number of groups which into the clusters should be sorted

cor_method

A character string defining the correlation coefficient you want to use: "pearson", "kendall" or "spearman". The deafault is "pearson".

cl_method

A character string defining the agglomeration method to be used. See hclust stats function for details.

...

argument passed to the hclust function

Value

this function returns a compare object retain only just part of the original clusters


vtorda/CompareTools documentation built on Nov. 6, 2019, 9:07 p.m.