This function adds a nicely formatted color-scale legend
to a plot.
NOTE: This function will be made available in
the LICORS package in the next release. It will
then be removed from the NAMESPACE of the
LSC package.
on which side of the plot (1=bottom, 2=left,
3=top, 4=right)
col.ticks
color tick marks
max.height
height of the density plot (typically
not modified by user)
cex.axis
The magnification to be used for axis
annotation relative to the current setting of
cex.
col
colors: either a string decribing a pallette
from the RColorBrewer package (see also
http://colorbrewer2.org/), or a list of colors (see
image for suggestions).
zlim
minimum and maximum z values for which colors
should be plotted, defaulting to the range of the finite
values of data.