hclust_methods: Hierarchical clustering method comparison

Description Usage Arguments Details

View source: R/lipidome_comparison_clustering.R

Description

'hclust_methods' takes a data frame and prints three dendrograms, one each for average linkage, single linkage and complete linkage.

Usage

1
2
3
4
5
6
7
hclust_methods(
  input_df,
  labs = row.names(input_df),
  title = "Hierarchical clustering method comparison",
  dist_method = "euclidean",
  out_path = "none"
)

Arguments

input_df

data frame.

labs

vector. Labels of dendrogram. Default: rownames(input_df)

title

string. Plot title. Default = "Hierarchical clustering method comparison".

dist_method

string. MEthod for distance function. = c("euclidean", "manhattan")

out_path

string. Path to save plot to png. Default = to device.

Details

This function takes a data frame and transforms it into a matrix. The given matrix is then used to perform hiererchical clustering with the average, single and complete linkage methods. The three clustering methods are then displayed as dendrograms. This plot is ment as a help to find ozt which clustering method should be used.


lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.