CladeByTrait | R Documentation |
Extract clades from a larger phylogeny based on a binary trait, with options to choose minimum and maximum clade size as well as the fraction of species sharing the trait
CladeByTrait(x, tree, prefix, min_clade_size, max_clade_size,
monophyly_threshold, summary = FALSE)
x |
a |
tree |
a |
prefix |
a character string. A prefix for the output file names. |
min_clade_size |
numeric. The minimum number of tips in the resulting clades. |
max_clade_size |
numeric. The maximum number of tips in the resulting clades. |
monophyly_threshold |
numeric. The number of species in a clade permitted not to exhibit the trait of interest. |
summary |
logical. If TRUE a summary file is written to disk. |
A set of nexus files and plots in the working directory
See https://github.com/azizka/speciesgeocodeR/wiki for more details and tutorials.
Alexander Zizka, Ruud Scharn
sp.nam <- unique(paste(sample(letters, size = 250, replace = TRUE),
sample(letters, size = 250, replace = TRUE),
sep = ""))
tr.dat <- sample(c(0,1), size = length(sp.nam), replace = TRUE)
trait <- data.frame(species = sp.nam, trait = tr.dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.