get_glottolog_trees | R Documentation |
Returns a multiPhylo object containing all, or a requested subset, of the glottolog trees.
get_glottolog_trees(family, glottolog_version)
family |
A character vector. Elements are names of glottolog families
whose trees are to be returned. If |
glottolog_version |
A character string, specifying which glottolog
version to use. Currently available options are |
By default, trees are returned from the most recent version of glottolog. Alternatively, an older version of glottolog can be specified.
A phylo
object containing one glottolog tree, or a
multiPhylo
object containing multiple glottolog trees.
library(ape)
tree_totonacan <- get_glottolog_trees(family = "Totonacan")
tree_totonacan_v4.3 <- get_glottolog_trees("Totonacan", "4.3")
plot(tree_totonacan)
plot(tree_totonacan_v4.3)
trees <- get_glottolog_trees(family = c("Caddoan", "Tangkic"))
plot(trees[[1]])
plot(trees[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.