sis_format_comparison | R Documentation |
Convert a data.frame of all sister groups (from sis_get_sisters) and a vector of 0 and 1 (with names equal to taxon names) to a data.frame with the sister groups that differ in traits.
sis_format_comparison(sisters, trait, phy)
sisters |
Data.frame from sis_get_sisters() |
trait |
vector of 0/1 data |
phy |
A phylo object |
data.frame where each row is a sister group comparison.
data(geospiza, package="geiger")
cleaned <- sis_clean(geospiza$phy, geospiza$dat)
phy <- cleaned$phy
traits <- cleaned$traits
trait <- sis_discretize(traits[,1])
sisters <- sis_get_sisters(phy, ncores=2)
sisters_comparison <- sis_format_comparison(sisters, trait, phy)
print(sisters_comparison)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.