Redraw the lines of a phylogenetic tree.
redraw.phylo( saved_plot = NULL, col = "black", lwd = 1, lty = 1, lend = 2, arrow.l = 0, arrow.angle = 45, arrow.code = 2, indices = NULL )
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 ?arrowsindices
: Optional indices which edges to redraw. Can be used to highlight specific edges in different color or style.Nothing (redraws selected edges of the phylogeny on the active plot device)
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)
Useful links