Learn R Programming

oaPlots (version 0.0.25)

plotPolygonRegions: Function to plot all colored density regions of a density legend

Description

Function to plot all colored density regions of a density legend

Usage

plotPolygonRegions(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