scale_fill_gradient2 | R Documentation |
ggplot2::scale_fill_gradient2()
Selects the colours depending on the current set theme.
scale_fill_gradient2(
...,
low,
high,
mid,
midpoint = 0,
space = "Lab",
guide = "colourbar",
na.value = "grey50",
aesthetics = "fill"
)
... |
Arguments passed on to
|
low |
Colour for the low end of the gradient |
high |
Colour for the high end of the gradient |
mid |
colour for mid point |
midpoint |
The midpoint (in data value) of the diverging scale. Defaults to 0. |
space |
colour space in which to calculate gradient. Must be "Lab" - other values are deprecated. |
guide |
Type of legend. Use |
na.value |
Colour to use for missing values |
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 |
Thierry Onkelinx, Oona Op de Weerdt, Nicole De Groof
Other scales:
scale_colour_discrete()
,
scale_colour_gradient2()
,
scale_colour_gradient()
,
scale_colour_viridis_d()
,
scale_fill_discrete()
,
scale_fill_gradient()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.