scale_fill_gradient | R Documentation |
ggplot2::scale_fill_gradient()
Selects the colours depending on the current set theme.
scale_fill_gradient(
...,
low,
high,
space = "Lab",
na.value = "grey50",
guide = "colourbar",
aesthetics = "fill"
)
... |
Arguments passed on to
|
low |
Colour for the low end of the gradient |
high |
Colour for the high end of the gradient |
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 |
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_gradient2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.