Description Usage Arguments Value Examples
Create clusters
1 2 3 4 5 | create_clusters(
tree,
N_clusters,
method = c("monophyletic", "paraphyletic", "uniform")
)
|
tree |
tree whose tips must be clustered. |
N_clusters |
number of clusters. |
method |
method to create clusters among |
The belonging of each tip to a cluster as a named integer.
1 2 3 4 5 | tree <- ape::rtree(10)
N <- 3
plot(tree)
create_clusters(tree, N)
create_clusters(tree, N, method = "paraphyletic")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.