View source: R/function_ancestral_state.R
calc_ancestral_state | R Documentation |
Ancestral State per Assemblage
calc_ancestral_state(tree, ancestral.area, prefix = "N")
tree |
A newick phylogenetic tree object |
ancestral.area |
One column data frame. Lines are nodes the column are the biomes/region of occurrence
for each ancestors. Can be obtained by using ( |
prefix |
A single character string to be used to name nodes |
A data frame with assemblages in lines and nodes in columns. Each cell contains the ancestral area/Ecoregion of occurrence for each node and its respective species.
Gabriel Nakamura gabriel.nakamura.souza@gmail.com
biogeo_toy <- data.frame(Ecoregion= c("A", "B", "C"))
ancestral_area_toy <- data.frame(state= c("ABC", "B", "C", "ABC"))
calc_ancestral_state(toy_treeEx, ancestral_area_toy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.