dotTree | R Documentation |
Creates a plot in which different sized dots/circles represent different tip values for a quantitative trait.
dotTree(tree, x, legend=TRUE, method="plotTree", standardize=FALSE, ...)
dot.legend(x, y, min, max, Ntip, length=5, prompt=FALSE, method="plotTree",
...)
tree |
an object of class |
x |
vector of trait values; or a matrix. If |
legend |
logical value indicating whether or not a legend should be plotted. |
method |
tree plotting method to be used internally. Will switch to |
standardize |
a logical value indicating whether or not to standardize |
y |
y coordinate of the legend. |
min |
minimum value for |
max |
maximum value for |
Ntip |
number of tips in the plotted tree for |
length |
length of legend. |
prompt |
logical value indicating whether or not to prompt for legend position. |
... |
optional arguments. In the case of |
Function creates a plot.
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.
## load data from Garland et al. (1992)
data(mammal.tree)
data(mammal.data)
## log-transform trait data
log.mammal<-log(mammal.data)
## plot dotTree
dotTree(mammal.tree,log.mammal,fsize=0.7,
standardize=TRUE,length=10)
par(mar=c(5.1,4.1,4.1,2.1)) ## reset margins to default
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.