View source: R/palette_stevenuniverse.R
stevenUniverse_pal | R Documentation |
Steven, Garnet, Amethyst, Pearl, Peridot, Sardonyx, Nephrite, Sugilite, & more!
stevenUniverse_pal(
palette = "Steven",
n,
type = c("discrete", "continuous"),
reverse = FALSE
)
scale_color_stevenUniverse(
palette = "Steven",
n,
type = "discrete",
reverse = FALSE,
...
)
scale_colour_stevenUniverse(
palette = "Steven",
n,
type = "discrete",
reverse = FALSE,
...
)
scale_fill_stevenUniverse(
palette = "Steven",
n,
type = "discrete",
reverse = FALSE,
...
)
library(scales)
show_col(stevenUniverse_pal(palette = "Steven")(5))
show_col(stevenUniverse_pal(palette = "Pearl")(5))
library(ggplot2)
ggplot(airquality, aes(x = Day, y = Temp,
group = as.factor(Month), color = as.factor(Month))) +
geom_point(size = 2.5) +
scale_color_stevenUniverse(palette = "Steven")
ggplot(airquality, aes(x = Day, y = Temp,
group = as.factor(Month), color = as.factor(Month))) +
geom_point(size = 2.5) +
scale_colour_stevenUniverse(palette = "Peridot")
ggplot(mpg, aes(displ)) +
geom_histogram(aes(fill = class), col = "black", size = 0.1) +
scale_fill_stevenUniverse(palette = "LapisLazuli")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.