scale_color_wa_d {wacolors} | R Documentation |
Color palettes for ggplot2
Description
Color palettes for ggplot2
Usage
scale_color_wa_d(palette = "rainier", which = NULL, ..., reverse = FALSE)
scale_fill_wa_d(palette = "rainier", which = NULL, ..., reverse = FALSE)
scale_color_wa_c(
palette = "sound_sunset",
which = NULL,
midpoint = NULL,
...,
reverse = FALSE
)
scale_fill_wa_c(
palette = "sound_sunset",
which = NULL,
midpoint = NULL,
...,
reverse = FALSE
)
scale_color_wa_b(palette = "sound_sunset", which = NULL, ..., reverse = FALSE)
scale_fill_wa_b(palette = "sound_sunset", which = NULL, ..., reverse = FALSE)
scale_colour_wa_d(palette = "rainier", which = NULL, ..., reverse = FALSE)
scale_colour_wa_c(
palette = "sound_sunset",
which = NULL,
midpoint = NULL,
...,
reverse = FALSE
)
scale_colour_wa_b(palette = "sound_sunset", which = NULL, ..., reverse = FALSE)
Arguments
palette |
a |
which |
if not |
... |
Other arguments passed on to |
reverse |
|
midpoint |
if not |
Value
A ggplot2::Scale object.
Examples
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(color = factor(cyl), size=hp)) +
scale_color_wa_d()
ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(color = hp)) +
scale_color_wa_c("palouse", which=c("snake", "wheat"))
ggplot(diamonds) +
geom_bar(aes(x = cut, fill = clarity)) +
scale_fill_wa_d(wacolors$sound_sunset, reverse=TRUE)
[Package wacolors version 0.3.1 Index]