scale_color_see {see} | R Documentation |
See color palette
Description
The See color palette. Use scale_color_see_d()
for discrete
categories and scale_color_see_c()
for a continuous scale.
Usage
scale_color_see(
palette = "contrast",
discrete = TRUE,
reverse = FALSE,
aesthetics = "color",
...
)
scale_color_see_d(
palette = "contrast",
discrete = TRUE,
reverse = FALSE,
aesthetics = "color",
...
)
scale_color_see_c(
palette = "contrast",
discrete = FALSE,
reverse = FALSE,
aesthetics = "color",
...
)
scale_colour_see(
palette = "contrast",
discrete = TRUE,
reverse = FALSE,
aesthetics = "color",
...
)
scale_colour_see_c(
palette = "contrast",
discrete = FALSE,
reverse = FALSE,
aesthetics = "color",
...
)
scale_colour_see_d(
palette = "contrast",
discrete = TRUE,
reverse = FALSE,
aesthetics = "color",
...
)
scale_fill_see(
palette = "contrast",
discrete = TRUE,
reverse = FALSE,
aesthetics = "fill",
...
)
scale_fill_see_d(
palette = "contrast",
discrete = TRUE,
reverse = FALSE,
aesthetics = "fill",
...
)
scale_fill_see_c(
palette = "contrast",
discrete = FALSE,
reverse = FALSE,
aesthetics = "fill",
...
)
Arguments
palette |
Character name of palette. Depending on the color scale, can
be |
discrete |
Boolean indicating whether color aesthetic is discrete or not. |
reverse |
Boolean indicating whether the palette should be reversed. |
aesthetics |
A vector of names of the aesthetics that this scale
should be applied to (e.g., |
... |
Additional arguments to pass to |
Examples
library(ggplot2)
library(see)
ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) +
geom_boxplot() +
theme_modern() +
scale_fill_see_d()
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) +
geom_point() +
theme_abyss() +
scale_colour_see(palette = "light")
ggplot(iris, aes(x = Petal.Length, y = Petal.Width, color = Sepal.Length)) +
geom_point() +
theme_modern() +
scale_color_see_c(palette = "rainbow")
[Package see version 0.8.5 Index]