View source: R/roundPhylogram.R
roundPhylogram | R Documentation |
Plots one or multiple round phylograms, a sigmoidal phylogram or cladogram, or a phylogram draw using cubic splines through the nodes.
roundPhylogram(tree, fsize=1.0, ftype="reg", lwd=2, mar=NULL, offset=NULL,
direction="rightwards", type="phylogram", xlim=NULL, ylim=NULL, ...)
sigmoidPhylogram(tree, ...)
splinePhylogram(tree, ...)
tree |
an object of class |
fsize |
relative font size for tip labels. |
ftype |
font type - options are |
lwd |
line width for plotting. |
mar |
vector containing the margins for the plot to be passed to |
offset |
offset for the tip labels. |
direction |
plotting direction. Only the option |
type |
plot type. Can be |
xlim |
x-limits for the plot. |
ylim |
y-limits for the plot. |
... |
optional arguments. In the case of |
The underscore character "_"
is automatically swapped for a space in tip labels, as in plotSimmap
.
Plots a tree.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
plotSimmap
, plotTree
## load mammal.tree
data(mammal.tree)
## plot using roundPhylogram
roundPhylogram(compute.brlen(mammal.tree),
fsize=0.8,ftype="i")
## load anoletree
data(anoletree)
## plot using sigmoidPhylogram
sigmoidPhylogram(anoletree,fsize=0.6,
ftype="i",direction="upwards")
par(mar=c(5.1,4.1,4.1,2.1)) ## reset margin to default
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.