powered by
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 )
Nothing (redraws selected edges of the phylogeny on the active plot device)
Optional saved plot (e.g. using get("last_plot.phylo", envir = ape::.PlotPhyloEnv)) to be used instead of currently active plot.
Color to be used for redrawing tree edges.
Line width to be used for redrawing tree edges.
Line type to be used for redrawing tree edges.
Style of line ends to be used for redrawing tree edges.
Length of arrow ends to be used for plotting. Defaults to 0, i.e. no visible arrow.
Angle of arrow ends to be used for plotting. Defaults to 45 degrees.
Arrow code to be used for plotting. For details, see ?arrows
Optional indices which edges to redraw. Can be used to highlight specific edges in different color or style.
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)
Run the code above in your browser using DataLab