Description Usage Arguments Value
View source: R/makeHCdendrogram.R
Plot HC dendrogram given a data frame.
1 2 3 4 5 6 7 | makeHCdendrogram(
df,
sample_to_color_map,
method_distance = "euclidean",
method_agglomeration = "complete",
main = "hierarchical clustering dendrogram"
)
|
df |
A data frame on which PCA plot is based. |
sample_to_color_map |
A data frame mapping sample names to color. Make sure the order of row of 'sample_to_color_map' is the same as order of columns in 'df'. Make sure there is column named 'color'. |
method_distance |
A character of method for calculating distances between samples. Defaults to "euclidean". Can also be one of:"maximum", "manhattan", "canberra", "binary", "minkowski", "pearson", "kendall", "spearman". The last free are derived from fdistColPearson() function. |
method_agglomeration |
A character of sample clustering method. Defaults to "complete" (i.e. complete linkage algorithm). Can also be one of: "ward.D", "ward.D2", "single","average","mcquitty","median","centroid". See ?hclust for more info. |
A HC dendrogram
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.