Creates tree-dimensional phylomorphospace plot
This function creates a phylomorphospace plot for three characters using the 3D visualization package, 'rgl'.
phylomorphospace3d(tree, X, A=NULL, label=TRUE, control=list(), method=c("dynamic","static"), ...)
tree |
a phylogenetic tree in |
X |
an |
A |
an optional |
label |
logical value indicating whether to print tip labels next to terminal nodes in the plot (presently doesn't do anything, but labels can be dropped using |
control |
a list containing the following optional control parameters: |
method |
a string either |
... |
optional arguments to be passed to |
This function creates a three dimensional phylomorphospace plot. The function returns a function from spin3d
(for method="dynamic"
); or a series of functions from scatterplot3d
(for method="static"
).
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.
Sidlauskas, B. (2008) Continuous and arrested morphological diversification in sister clades of characiform fishes: A phylomorphospace approach. Evolution, 62, 3135-3156.
data(anoletree) data(anole.data) anole.pca<-phyl.pca(anoletree,anole.data) ## Not run: phylomorphospace3d(anoletree,scores(anole.pca)[,1:3], control=list(spin=FALSE)) ## End(Not run) par(cex=0.5) phylomorphospace3d(anoletree,scores(anole.pca)[,1:3], method="static",angle=-30) par(cex=1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.