The palette based Social colors.
Use scale_color_social_d
for discrete categories and
scale_color_social_c
for a continuous scale.
scale_color_social(
palette = "complement",
discrete = TRUE,
reverse = FALSE,
...
)scale_color_social_d(
palette = "complement",
discrete = TRUE,
reverse = FALSE,
...
)
scale_color_social_c(
palette = "complement",
discrete = FALSE,
reverse = FALSE,
...
)
scale_colour_social(
palette = "complement",
discrete = TRUE,
reverse = FALSE,
...
)
scale_colour_social_c(
palette = "complement",
discrete = FALSE,
reverse = FALSE,
...
)
scale_colour_social_d(
palette = "complement",
discrete = TRUE,
reverse = FALSE,
...
)
scale_fill_social(
palette = "complement",
discrete = TRUE,
reverse = FALSE,
...
)
scale_fill_social_d(
palette = "complement",
discrete = TRUE,
reverse = FALSE,
...
)
scale_fill_social_c(
palette = "complement",
discrete = FALSE,
reverse = FALSE,
...
)
Character name of palette. Depending on the color scale, can
be "full"
, "ice"
, "rainbow"
, "complement"
,
"contrast"
or "light"
(for dark themes).
Boolean indicating whether color aesthetic is discrete or not.
Boolean indicating whether the palette should be reversed.
Additional arguments to pass to colorRampPalette()
.
# NOT RUN {
library(ggplot2)
library(see)
ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) +
geom_boxplot() +
theme_modern() +
scale_fill_social_d()
ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) +
geom_violin() +
theme_modern() +
scale_fill_social_d(palette = "ice")
ggplot(iris, aes(x = Petal.Length, y = Petal.Width, color = Sepal.Length)) +
geom_point() +
theme_modern() +
scale_color_social_c(palette = "rainbow")
# }
Run the code above in your browser using DataLab