Learn R Programming

phyloTop (version 2.1.2)

configShow: Plot a tree highlighting configurations

Description

Plot a tree, highlighting configurations of a given size.

Usage

configShow(tree, configSize, mainCol = "black", configCol = "red", ...)

Value

A plot of the tree, highlighting the configurations of the given size.

Arguments

tree

a tree of class phylo4

configSize

an integer giving the configuration size of interest

mainCol

colour for branches which are not in configurations of the chosen size (default is black)

configCol

colour for branches which are in such configurations (default is red)

...

further arguments to be passed to plot.phylo

Author

Michelle Kendall michelle.louise.kendall@gmail.com

Michael Boyd mboyd855@gmail.com

Examples

Run this code
## Highlight pitchforks in a random tree with 20 tips:
configShow(rtree(20),3, edge.width=2)

Run the code above in your browser using DataLab