View source: R/tree_manipulation.R
lineage | R Documentation |
Find the ancestors of a node
lineage(x, ...)
## S3 method for class 'Strata'
lineage(x, id = x@focal_species, type = "name", use_name = TRUE, ...)
## S3 method for class 'phylo'
lineage(x, id, use_name = FALSE, type = "auto", ...)
## S3 method for class 'phylo'
tree_size(x)
x |
phylo object |
... |
Arguments passed on to |
id |
A single name or index |
type |
id type: ['name', 'index', 'auto'] |
use_name |
Should names be used rather than internal ids |
data(atree)
lineage(atree, 't1')
lineage(atree, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.