Description Usage Arguments Value Author(s) Examples
View source: R/traitData.plot.R
Plots a phylogeny with lines representing the value of a continuous trait
1 2 | traitData.plot(y, phy, col.label = "red", col.tree = "black",
cex.plot = 0.7, include.hist = F)
|
y |
A matrix of trait values with taxon names as rownames. |
phy |
An object of class "phylo" (see ape package). |
col.label |
colour labels for the traits at the tips and in the histogram |
col.tree |
colour for the edge labels on the tree |
cex.plot |
Numeric. The size of labels for the histogram axis labels |
include.hist |
Logical. Include a histrogram alongside the plot of the tree? |
A plot with the trait values shown at the tips, and a histrogram of the trait values
Mark Puttick
1 2 3 4 5 6 7 8 | data(anolis.tree)
data(anolis.data)
attach(anolis.data)
male.length <- matrix(Male_SVL, dimnames=list(rownames(anolis.data)))
sortedData <- sortTraitData(anolis.tree, male.length)
phy <- sortedData$phy
male.length <- sortedData$trait
traitData.plot(y=male.length, phy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.