scale_colour_viridis_d | R Documentation |
ggplot2::scale_colour_viridis_d()
Selects the colours depending on the current set theme.
scale_colour_viridis_d(
...,
alpha = 1,
begin = 0,
end = 1,
direction = 1,
option = "D",
aesthetics = "colour"
)
scale_fill_viridis_d(
...,
alpha = 1,
begin = 0,
end = 1,
direction = 1,
option = "D",
aesthetics = "fill"
)
... |
Arguments passed on to
|
alpha |
The alpha transparency, a number in [0,1], see argument alpha in
|
begin, end |
The (corrected) hue in |
direction |
Sets the order of colors in the scale. If 1, the default, colors are ordered from darkest to lightest. If -1, the order of colors is reversed. |
option |
A character string indicating the color map option to use. Eight options are available:
|
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_fill_discrete()
,
scale_fill_gradient2()
,
scale_fill_gradient()
Other scales:
scale_colour_discrete()
,
scale_colour_gradient2()
,
scale_colour_gradient()
,
scale_fill_discrete()
,
scale_fill_gradient2()
,
scale_fill_gradient()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.