displayLegend: Displays Tree Plot Legend

Description Usage Arguments Details Value Author(s) Examples

View source: R/displayLegend.R

Description

This function displays a legend that shows the tree branch sizes/colors divisions.

Usage

1
displayLegend(colors = NULL, divisions = NULL, title = "Confidence Value")

Arguments

colors

A vector of colors to be used in the plot from lowest ranking to highest ranking.

divisions

A vector of numbers from lowest to highest to separate the tree branches into the color ranking.

title

The title for the legend.

Details

The values for division should directly relate to the values of your data, i.e. if your data ranges from 0 to 50000 reads you should adjust the divisions to fit your data.

Value

A blank plot that contains a legend.

Author(s)

Berkley Shands, Patricio S. La Rosa, Elena Deych, William D. Shannon

Examples

1
	displayLegend(c("red", "orange", "blue"), c(.1, 100, 10000))

HMPTrees documentation built on May 2, 2019, 4:02 p.m.