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), skip to return the entire color palette
- ...
Arguments passed on to
ggplot2::scale_fill_gradientnnameThe 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.spacecolour space in which to calculate gradient. Must be "Lab" - other values are deprecated.
na.valueColour to use for missing values
guideType of legend. Use
"colourbar"for continuous colour bar, or"legend"for discrete colour legend.aestheticsCharacter 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
colourandfillaesthetics at the same time, viaaesthetics = c("colour", "fill").colours,colorsVector of colours to use for n-colour gradient.
valuesif colours should not be evenly positioned along the gradient this vector gives the position (between 0 and 1) for each colour in the
coloursvector. Seerescale()for a convenience function to map an arbitrary range to between 0 and 1.
