plot_phylo | R Documentation |
phylo
tree objectThis 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.
plot_phylo( tree, xlab = "Coancestry", xmax = NULL, leg_n = 5, edge_width = 1, ... )
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 |
plot_popkin()
can create multipanel figures including kinship matrices and trees (calling the present function in the process).
# create a small random tree library(ape) tree <- rtree( 3 ) # plot it! plot_phylo( tree )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.