Learn R Programming

phyloTop (version 2.1.2)

ladderShow: Show ladders

Description

Plot a tree, highlighting any ladders within it.

Usage

ladderShow(
  tree,
  mainCol = "black",
  ladderEdgeCol = "red",
  ladderNodeCol = "red",
  ...
)

Value

A plot of the tree, with ladder edges and nodes highlighted by colour.

Arguments

tree

a tree of class phylo or phylo4. The tree should be binary and rooted; if not it will be coerced into a binary rooted tree using multi2di, if possible.

mainCol

colour for edges which are not ladders (default is black)

ladderEdgeCol

colour for ladder edges (default is red)

ladderNodeCol

colour for ladder nodes (default is red)

...

further arguments to be passed to plot.phylo

Author

Michelle Kendall michelle.louise.kendall@gmail.com

Michael Boyd mboyd855@gmail.com

See Also

ladderSizes

Examples

Run this code
## Highlight in blue the ladders in a random tree with 50 tips:
tree <- rtree(50)
ladderShow(tree, edge.width=2)
# compare to:
ladderSizes(tree)


Run the code above in your browser using DataLab