ladderize.simmap | R Documentation |
Ladderizes an object of class "simmap"
.
ladderize.simmap(tree, right=TRUE)
tree |
an object of class |
right |
a logical specifying how the tree should be ladderized. |
This function 'ladderizes' an object of class "simmap"
with a mapped discrete character.
For more information see ladderize
.
A ladderized object of class "simmap"
.
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.
make.simmap
, ladderize
## load "simmap" object
data(anoletree)
## ladderize object
anoletree_ladderized<-ladderize.simmap(anoletree)
## plot unladderized & ladderized
par(mfrow=c(2,1))
plot(anoletree,ftype="off",direction="upwards",
mar=c(1.1,2.1,2.1,1.1))
mtext("a) unladderized tree",adj=0)
plot(anoletree_ladderized,ftype="off",
direction="upwards",mar=c(1.1,2.1,2.1,1.1))
mtext("b) ladderized tree",adj=0)
## reset par to default
par(mfrow=c(1,1),mar=c(5.1,4.1,4.1,2.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.