show_hcluster | R Documentation |
Perform hclustering analysis
show_hcluster(
df,
group = NULL,
dist.method = "euclidean",
hclust.method = "ward.D2",
color.pla = "npg",
main = "",
cutree = 0
)
df |
row is gene, col is sample |
dist.method |
Default euclidean. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given. |
hclust.method |
Default ward.D2. The agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC). |
color.pla |
Default npg |
main |
Title |
cutree |
Number of clusters |
data(LIRI)
loonR::show_hcluster(t(LIRI[,3:5]), LIRI$status)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.