Learn R Programming

oaPlots (version 0.0.25)

plotBars: A function for creating the segmented color bars in a density legend

Description

A function for creating the segmented color bars in a density legend

Usage

plotBars(de1, side, colorPalette, colorBreaks)

Arguments

de1
a density() object
side
the side of the plot that the density legend should be plotted on
colorPalette
A vector of color values
colorBreaks
A vector of cutoff values for the color regions

Value

none, graphics are added to the current device