add.color.bar: Add color bar to a plot
Description
This function adds a color bar to a plot created by plotBranchbyTrait
. The only way to add the color bar at present is by clicking on the desired location within your plot.Usage
add.color.bar(leg, cols, title=NULL, lims=c(0,1), digits=1, prompt=TRUE)
Arguments
leg
numerical value for the length of the legend.
cols
colors for the legend.
title
text to plot above the bar.
digits
digits for plotted numbers.
prompt
doesn't do anything in the present version.