plotOneTree | R Documentation |
Plots the phylogenetic tree contained in a phylo4
or phylo4d
object.
plotOneTree(
xxyy,
type,
show.tip.label,
show.node.label,
edge.color,
node.color,
tip.color,
edge.width,
rot
)
xxyy |
A list created by the |
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 |
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 |
rot |
Numeric indicating the rotation of the plot in degrees |
Returns no values, function invoked for the plotting side effect.
Peter Cowan pdc@berkeley.edu
treePlot
, phyloXXYY
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.