Learn R Programming

HMPTrees (version 1.4)

displayLegend: 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.

Value

A blank plot that contains a 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.

Examples

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

Run the code above in your browser using DataLab