plot | R Documentation |
This function provides two methods for visualizing a phyloscaled
tree produced by scaleTreeRates
.
## S3 method for class 'phyloscaled'
plot(tree, method = "multiply", palette = "RdYlGn",
edge.width = 1, cex = 1, show.tip.label = T)
tree |
a tree of class |
method |
a |
palette |
a |
edge.width |
numeric value that determines branch width |
cex |
numeric value for size |
show.tip.label |
logical indicating whether to print tip labels |
The two plotting methods currently supported are "multiply"
and "color"
.
multiply
takes the length of each edge on the phylogeny and multiplies it by the scalar associated with the edge before plotting the scaled tree.
color
assigns a color from a diverging palette to each edge depending on it's associated scalar. Currently supported palettes are any of the RColorBrewer palettes or the standard viridis palette (specified by string "viridis"
). Because RColorBrewer sets the maximum number of distinct colors for divergent palettes to be 11, any phylogeny which has greater than 11 unique scalar bins represented within it's edges must use a viridis palette. The ultrametric phylogeny is then plotted with each edge colored accordingly
A plotted phylogeny with edges either multiplied or colored by their associated scalars
Maximos Chin and Heath Blackmon
http://coleoguy.github.io/
scaleTreeRates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.