Creates a phylogenetic dot plot
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. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
## 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
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.