These functions are helper functions for working with keys in guides. The
functions described here are not widely applicable and may only apply
to a small subset of guides. As such, it is fine to adjust the arguments
of a speciality key, but swapping types is ill-advised.
key_sequence() is a function factory whose functions create a regularly
spaced sequence between the limits of a scale. It is used in colour bar
guides.
key_bins() is a function factory whose function create a binned key
given the breaks in the scale. It is used in colour steps guides.
Usage
key_sequence(n = 15)
key_bins(even.steps = FALSE, show.limits = NULL)
Value
For key_sequence() a function.
Arguments
n
A positive <integer[1]> giving the number of colours to use for a
gradient.
even.steps
A <logical[1]> indicating whether the size of bins
should be displayed as equal (TRUE) or proportional to their length in
data space (FALSE).
show.limits
A <logical[1]> stating whether the limits of the scale
should be shown with labels and ticks (TRUE) or remain hidden (FALSE).
Note that breaks coinciding with limits are shown regardless of this
setting. The default, NULL, consults the scale's show.limits setting
or defaults to FALSE.
See Also
Other keys:
key_group,
key_range,
key_segments,
key_standard