- zlim
two-element numeric vector; required; the min and max value of z
- col
character vector; required; the colors that will be used in the
legend.
- alpha
numeric; transparency of the colors. Must be in the range
0-1, where 0 is fully transparent and 1 is fully opaque. Default is 1.
- lgd_box_col
character; color of the box to draw around the entire
legend. If NULL
(the default), no box is drawn
- lgd_x_pct
numeric; location of the center of the legend in the
x-dimension, as a fraction (0 to 1) of the right margin area,
not the entire width of the figure
- lgd_y_pct
numeric; location of the center of the legend in the
y-dimension, as a fraction (0 to 1). Unlike lgd_x_pct
, this
is relative to the entire figure height (since the right margin
area spans the entire vertical dimension)
- lgd_wd_pct
numeric; width of the entire legend, as a fraction (0 to 1)
of the right margin width
- lgd_ht_pct
numeric; height of the entire legend, as a fraction (0 to
1) of the figure height
- bar_box_col
character; color of the box to draw around the color bar.
If NULL
, no box is drawn
- bar_wd_pct
numeric; width of the color bar, as a fraction (0 to 1) of
the width of the legend area (not the entire right margin
width)
- bar_ht_pct
numeric; height of the color bar, as a fraction (0 to 1) of
the height of the legend area (not the entire right margin
height)
- text_cex
numeric; size of the legend text. Default is 1.
- text_col
character; color of the legend text. Default is "black".
- text_font
integer; specifies which font to use. See
par()
for more details.
- text_x_pct
numeric; the x-placement of the legend text as a fraction
(0 to 1) of the width of the legend area. This corresponds to the
right-most part of the text - i.e. a value of 1 means the text will
end exactly at the right border of the legend area. Default is 1.
- ticks
numeric vector; the z-values at which to place tick marks. If
NULL
(the default), tick placement is automatically calculated
- ticks_n
integer; the number of ticks desired - only used if
ticks
is NULL
. Note that this is an approximate number
- the pretty()
function is used to generate
"nice-looking" values, but it doesn't guarantee a set number of tick marks