traitData.plot: plot a univariate continuous trait data on a phylogeny

Description Usage Arguments Value Author(s) Examples

View source: R/traitData.plot.R

Description

Plots a phylogeny with lines representing the value of a continuous trait

Usage

1
2
traitData.plot(y, phy, col.label = "red", col.tree = "black",
  cex.plot = 0.7, include.hist = F)

Arguments

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?

Value

A plot with the trait values shown at the tips, and a histrogram of the trait values

Author(s)

Mark Puttick

Examples

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)

motmot.2.0 documentation built on May 1, 2019, 9:22 p.m.