A simple legend
Add a simple legend in form of a color bar to a plot.
doLegend(breaks, col, side)
breaks |
a vector of breaks defining a set of intervals for the data |
col |
a vector of colors corresponding to the intervals. |
side |
integer between 1 and 4, indicating on which side of the main plot the legend is supposed to be drawn. Standard interpretation: 1 = below, continuing clock-wise. |
The locations of the ticks returned by the call to axis
## Set up data doLegend(1:9, g2r.colors(8), 2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.