redraw.phylo {paleoDiv} | R Documentation |
Redraw the lines of a phylogenetic tree.
Description
Redraw the lines of a phylogenetic tree.
Usage
redraw.phylo(
saved_plot = NULL,
col = "black",
lwd = 1,
lty = 1,
lend = 2,
arrow.l = 0,
arrow.angle = 45,
arrow.code = 2,
indices = NULL
)
Arguments
saved_plot |
Optional saved plot (e.g. using get("last_plot.phylo", envir = ape::.PlotPhyloEnv)) to be used instead of currently active plot. |
col |
Color to be used for redrawing tree edges. |
lwd |
Line width to be used for redrawing tree edges. |
lty |
Line type to be used for redrawing tree edges. |
lend |
Style of line ends to be used for redrawing tree edges. |
arrow.l |
Length of arrow ends to be used for plotting. Defaults to 0, i.e. no visible arrow. |
arrow.angle |
Angle of arrow ends to be used for plotting. Defaults to 45 degrees. |
arrow.code |
Arrow code to be used for plotting. For details, see ?arrows |
indices |
Optional indices which edges to redraw. Can be used to highlight specific edges in different color or style. |
Value
Plots a timescale on the currently active plot.
Examples
data(tree_archosauria)
ape::plot.phylo(tree_archosauria)
redraw.phylo(col="darkred",lwd=3,indices=c(19:24))
redraw.phylo(col="red",lwd=3,indices=c(18),arrow.l=0.1)
[Package paleoDiv version 0.3.0 Index]