plot_phylo {popkin} | R Documentation |
Plot a phylo
tree object
Description
This is a wrapper around ape::plot.phylo()
that makes several adjustments so plots agree more with accompanying kinship matrices.
In particular, tree is reversed on the y-axis to match matrix orientation, y-axis spacing is more padded for small trees, and an x-axis scale is always added.
Usage
plot_phylo(
tree,
xlab = "Coancestry",
xmax = NULL,
leg_n = 5,
edge_width = 1,
...
)
Arguments
tree |
A |
xlab |
The x-axis label (default "Coancestry"). |
xmax |
X-axis maximum limit. |
leg_n |
The desired number of ticks in the x-axis (input to |
edge_width |
The width of the tree edges (passed to |
... |
Additional parameters passed to |
See Also
plot_popkin()
can create multipanel figures including kinship matrices and trees (calling the present function in the process).
Examples
# create a small random tree
library(ape)
tree <- rtree( 3 )
# plot it!
plot_phylo( tree )