tree.layout | R Documentation |
Generate the coordinates for the nodes and edges of a phylogenetic tree (ape:phylo object) using one of several layout algorithms. Used before calling the generic plot functions (plot, points).
tree.layout(phy, type = "r", unscaled = FALSE)
phy: |
an S3 object of class 'phylo“ |
type: |
what type of layout algorithm to employ: "r"Rectangular layout "s"Slanted (triangular) layout "u"Unrooted (equal-angle) layout "o"Circular (radial) layout |
unscaled: |
if TRUE, return a cladogram layout |
S3 object of class 'phyloLayout'
require(ape)
phy <- rcoal(20)
lay <- tree.layout(phy, 'r')
head(lay$edges)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.