Description Usage Arguments Details
View source: R/lipidome_comparison_clustering.R
'hclust_methods' takes a data frame and prints three dendrograms, one each for average linkage, single linkage and complete linkage.
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"
)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.