plotOneTree {phylobase}R Documentation

Plot a phylo4 object

Description

Plots the phylogenetic tree contained in a phylo4 or phylo4d object.

Usage

plotOneTree(
  xxyy,
  type,
  show.tip.label,
  show.node.label,
  edge.color,
  node.color,
  tip.color,
  edge.width,
  rot
)

Arguments

xxyy

A list created by the phyloXXYY function

type

A character string indicating the shape of plotted tree

show.tip.label

Logical, indicating whether tip labels should be shown

show.node.label

Logical, indicating whether node labels should be shown

edge.color

A vector of colors in the order of edges(phy)

node.color

A vector of colors indicating the colors of the node labels

tip.color

A vector of colors indicating the colors of the tip labels

edge.width

A vector in the order of edges(phy) indicating the widths of edge lines

rot

Numeric indicating the rotation of the plot in degrees

Value

Returns no values, function invoked for the plotting side effect.

Author(s)

Peter Cowan pdc@berkeley.edu

See Also

treePlot, phyloXXYY

Examples

library(grid)
data(geospiza)
grid.newpage()
xxyy <- phyloXXYY(geospiza)
plotOneTree(xxyy, type = 'phylogram',
  show.tip.label = TRUE, show.node.label = TRUE,
  edge.color = 'black', node.color = 'orange', tip.color = 'blue',
  edge.width = 1, rot = 0
)

grid.newpage()
pushViewport(viewport(w = 0.8, h = 0.8))
plotOneTree(xxyy, type = 'phylogram',
  show.tip.label = TRUE, show.node.label = TRUE,
  edge.color = 'black', node.color = 'orange', tip.color = 'blue',
  edge.width = 1, rot = 0
)
popViewport()


[Package phylobase version 0.8.12 Index]