Custom ggplot2
continuous fill scale to match active Bootstrap brand.
Usage
scale_brand_cf(x = c("orange", "light", "green"), ...)
Arguments
- x
Color index or name(s), if missing returns the entire color palette
- ...
Arguments passed on to
ggplot2::scale_fill_gradientn
name
The name of the scale. Used as the axis or legend title. If
waiver()
, the default, the name of the scale is taken from the first mapping used for that aesthetic. IfNULL
, the legend title will be omitted.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.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
andfill
aesthetics at the same time, viaaesthetics = c("colour", "fill")
.colours,colors
Vector of colours to use for n-colour gradient.
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. Seerescale()
for a convenience function to map an arbitrary range to between 0 and 1.