Learn R Programming

phytools (version 0.1-5)

phenogram: Plot phenogram (traitgram)

Description

Function plots a traitgram, that is, a projection of the phylogenetic tree in a space defined by phenotype (on the y axis) and time (on the x).

Usage

phenogram(tree,x,fsize=1.0,ftype="reg")

Arguments

tree
an object of class "phylo".
x
a vector containing the states at the tips or the states at all the tips and the internal nodes of the tree.
fsize
relative font size for tip labels.
ftype
font type - options are "reg", "i" (italics), "b" (bold), or "bi" (bold-italics).

Value

  • plots a traitgram.

Examples

Run this code
tree<-rcoal(n=20)
  x<-fastBM(tree)
  phenogram(tree,x)

Run the code above in your browser using DataLab