- ...
Other arguments passed on to [discrete_scale()], [continuous_scale()],
or [binned_scale()], for `brewer`, `distiller`, and `fermenter` variants
respectively, to control name, limits, breaks, labels and so forth.
- type
One of "seq" (sequential), "div" (diverging) or "qual"
(qualitative)
- palette
If a string, will use that named palette. If a number, will index into
the list of palettes of appropriate `type`. The list of available palettes can found
in the Palettes section.
- direction
Sets the order of colours in the scale. If 1, the default,
colours are as output by RColorBrewer::brewer.pal()
. If -1, the
order of colours is reversed.
- aesthetics
Character string or vector of character strings listing the
name(s) of the aesthetic(s) that this scale works with. This can be useful, for
example, to apply colour settings to the colour
and fill
aesthetics at the
same time, via aesthetics = c("colour", "fill")
.
- values
if colours should not be evenly positioned along the gradient
this vector gives the position (between 0 and 1) for each colour in the
colours
vector. See rescale()
for a convenience function
to map an arbitrary range to between 0 and 1.
- space
colour space in which to calculate gradient. Must be "Lab" -
other values are deprecated.
- na.value
Colour to use for missing values
- guide
Type of legend. Use "colourbar"
for continuous
colour bar, or "legend"
for discrete colour legend.