scale_grey | R Documentation |
Based on [gray.colors()]. This is black and white equivalent of [scale_colour_gradient()].
scale_shadowcolour_grey( ..., start = 0.2, end = 0.8, na.value = "red", aesthetics = "shadowcolour" )
... |
Arguments passed on to
|
start |
grey value at low end of palette |
end |
grey value at high end of palette |
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 |
a scale object to add to a plot.
Other colour scales:
scale_brewer
,
scale_colour_hue
,
scale_colour_steps
,
scale_gradient
,
scale_viridis
library( ggplot2 ) p <- ggplot(mtcars, aes(wt, mpg, shadowcolour=as.factor(gear))) p + geom_glowpoint() + scale_shadowcolour_grey() + guides(shadowcolour='none')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.