Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cladePar

Utility function to plot.phylo


Description

cladePar can help you coloring (choosing edge width/type) of clades.

Usage

cladePar(tree, node, edge.color = "red", tip.color = edge.color,
  edge.width = 1, edge.lty = 1, x = NULL, plot = FALSE, ...)

Arguments

tree

an object of class phylo.

node

the node which is the common ancestor of the clade.

edge.color

see plot.phylo.

tip.color

see plot.phylo.

edge.width

see plot.phylo.

edge.lty

see plot.phylo.

x

the result of a previous call to cladeInfo.

plot

logical, if TRUE the tree is plotted.

...

Further arguments passed to or from other methods.

Value

A list containing the information about the edges and tips.

Author(s)

See Also

Examples

tree <- rtree(10)
plot(tree)
nodelabels()
x <- cladePar(tree, 12)
cladePar(tree, 18, "blue", "blue", x=x, plot=TRUE)

phangorn

Phylogenetic Reconstruction and Analysis

v2.7.0
GPL (>= 2)
Authors
Klaus Schliep [aut, cre] (<https://orcid.org/0000-0003-2941-0161>), Emmanuel Paradis [aut] (<https://orcid.org/0000-0003-3092-2199>), Leonardo de Oliveira Martins [aut] (<https://orcid.org/0000-0001-5247-1320>), Alastair Potts [aut], Tim W. White [aut], Cyrill Stachniss [ctb], Michelle Kendall [ctb], Keren Halabi [ctb], Richel Bilderbeek [ctb], Kristin Winchell [ctb], Liam Revell [ctb], Mike Gilchrist [ctb], Jeremy Beaulieu [ctb], Brian O'Meara [ctb], Long Qu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.