scale_colour_hue | R Documentation |
This is the default colour scale for categorical variables. It maps each level to an evenly spaced hue on the colour wheel. It does not generate colour-blind safe palettes.
scale_shadowcolour_hue( ..., h = c(0, 360) + 15, c = 100, l = 65, h.start = 0, direction = 1, na.value = "grey50", aesthetics = "shadowcolour" ) scale_shadowcolour_discrete( ..., h = c(0, 360) + 15, c = 100, l = 65, h.start = 0, direction = 1, na.value = "grey50", aesthetics = "shadowcolour" )
... |
Arguments passed on to
|
h |
range of hues to use, in [0, 360] |
c |
chroma (intensity of colour), maximum value varies depending on combination of hue and luminance. |
l |
luminance (lightness), in [0, 100] |
h.start |
hue to start at |
direction |
direction to travel around the colour wheel, 1 = clockwise, -1 = counter-clockwise |
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 'colour' and 'fill' aesthetics at the same time, via 'aesthetics = c("colour", "fill")'. |
a scale object to add to a plot.
Other colour scales:
scale_brewer
,
scale_colour_steps
,
scale_gradient
,
scale_grey
,
scale_viridis
library( ggplot2 ) p <- ggplot(mtcars, aes(wt, mpg, shadowcolor=as.factor(gear))) p + geom_shadowpoint() + scale_shadowcolour_hue() library( ggplot2 ) p <- ggplot(mtcars, aes(wt, mpg, shadowcolor=as.factor(gear))) p + geom_shadowpoint() + scale_shadowcolour_discrete()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.