View source: R/pseudotime_plotting.R
Plot a dendrogram and also cut it to merge input into 'num_desired' groups.
1 2 3 4 5 | dendrogram_merge_points(X, num_desired, results_path, FUN = function(x)
hclust(dist(x), method = "ward.D2"), REORDER_FUN = function(hc)
as.hclust(stats::reorder(as.dendrogram(hc), 1:nrow(X))),
PLOT_FUN = plot_dendro_with_rect, CUT_FUN = stats::cutree,
main = "Dendrogram", return_hc = F, ...)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.