Description Usage Arguments Value
This set of scales defines new colour scales for triangel geoms equivalent to the ones already defined by ggplot2.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | scale_colour_upper_gradient(..., low = "#132B43", high = "#56B1F7",
space = "Lab", na.value = "grey50", guide = "colourbar2")
scale_colour_upper_gradient2(..., low = muted("red"), mid = "white",
high = muted("blue"), midpoint = 0, space = "Lab",
guide = "colourbar2", na.value = "grey50")
scale_colour_upper_gradientn(..., colours, values = NULL,
guide = "colourbar2", space = "Lab", na.value = "grey50", colors)
scale_colour_upper_identity(...)
scale_colour_upper_manual(..., values, aesthetics = "colour.upper")
scale_colour_lower_gradient(..., low = "#132B43", high = "#56B1F7",
space = "Lab", guide = "colourbar2", na.value = "grey50")
scale_colour_lower_gradient2(..., low = muted("red"), mid = "white",
high = muted("blue"), midpoint = 0, space = "Lab",
guide = "colourbar2", na.value = "grey50")
scale_colour_lower_gradientn(..., colours, values = NULL,
space = "Lab", guide = "colourbar2", na.value = "grey50", colors)
scale_colour_lower_identity(...)
scale_colour_lower_manual(..., values, aesthetics = "colour.upper")
|
... |
Arguments passed on to
|
low, high |
Colours for low and high ends 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 |
mid |
colour for mid point |
midpoint |
The midpoint (in data value) of the diverging scale. Defaults to 0. |
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
|
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 |
A ggproto object inheriting from 'Scale'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.