displayLegend {HMPTrees}R Documentation

Displays Tree Plot Legend

Description

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

Usage

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

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

[Package HMPTrees version 1.4 Index]