Jam color palette for ggplot2
Arguments
- type
character
string indicating the colors are sequential"seq"
.- palette
integer
value indicating the categorical palette to use, intended to provide variety in the color assignment. (Not yet implemented.)- direction
integer
indicating whether to reverse the color assignment, either1
for the default forward assignment, or-1
for reverse assignment. Any negative value will reverse the colors.- invert
logical
indicating whether to return corresponding contrasting colors, for example for text labels, typically either"white"
or"black"
as defined byjamba::setTextContrastColor()
.- darkFactor, sFactor
numeric
passed tojamba::makeColorDarker()
for optional adjustment of the color, by darkness and saturation, respectively. Intended when usingscale_color_jam()
andscale_fill_jam()
where you want the color value to be lighter or darker than the fill color, a useful effect for outlines.- darken
logical
indicating whether to apply default values fordarkFactor
andsFactor
to darken the resulting colors.- alpha
numeric
value indicating the alpha transparency, on a scale of 0 (transparent) to 1 (non-transparent).- useGrey
integer
value between 0 and 100 indicating the grey value, as sent tojamba::setTextContrastColor()
, used only wheninvert=TRUE
.- ...
additional arguments are passed to
rainbowJam()
.
See also
Other colorjam ggplot2:
scale_color_jam()
,
scale_fill_jam()
,
theme_jam()