Description Usage Arguments Details Value Author(s) Examples
This function takes one or more 'phylo' objects and plots them.
1 2 3 |
treeList |
A list that contains at least one tree of type 'phylo'. |
colors |
A vector of colors to be applied to the branches in the plot. |
divisions |
A vector of numbers to be used as break points to assign different colors. |
main |
A custom title(s) for the plot(s). |
sub |
A custom subtitle for the plot. |
showTipLabel |
Hides the tip labels if 'FALSE' otherwise it shows all non-zero tip labels. |
showNodeLabel |
Hides the interior node labels if 'FALSE' otherwise it shows all non-zero node labels. |
displayLegend |
Enables the display of a legend of the branch colors and divisions when 'TRUE'. |
trees |
Deprecated. Replaced with treeList. |
Notes:
The phylo
type is a product of the ape
package and the createTrees
function in this package
produces a list of phylo
type objects for use with this function.
The values for division should directly relate to the values of your data, i.e. if your data ranges from 0 to 50000 reads you should adjust the divisions to fit your data.
A plot of the tree(s).
Berkley Shands, Patricio S. La Rosa, Elena Deych, William D. Shannon
1 2 3 4 5 | data(saliva)
### Creates a tree for the 4th sample in 'Saliva' then plots it
salivaTree <- createTrees(saliva[,4, drop=FALSE])
plotTree(salivaTree, displayLegend=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.