Learn R Programming

phytools (version 0.3-72.1)

phylo.to.map: Plot tree with tips linked to geographic coordinates

Description

Function plots a tree and tips pointing to coordinates on a global map.

Usage

phylo.to.map(tree, coords, rotate=TRUE, ...)
## S3 method for class 'phylo.to.map':
plot(x, type=c("phylogram","direct"), ...)

Arguments

tree
an object of class "phylo".
coords
a matrix containing the latitude (in column 1) and the longitude of all tip species in the tree. The row names should be the same as tree$tip.label.
rotate
a logical value indicating whether or not to rotate nodes of the tree to better match longitudinal positions.
x
for plot.phylo.to.map, an object of class "phylo.to.map".
type
a string indicating whether to map the tips of the tree onto a geographic map from a square phylogram (type="phylogram") or to project the tree directly onto the map (type="direct").
...
optional arguments. For phylo.to.map, which creates an object of class "phylo.to.map" and (optionally) plots that object, optional arguments include: database and regions (see

Value

  • Plots a phylogeny and map and returns an object of class "phylo.to.map" invisibly.