princess_db | R Documentation |
A tibble
including the color map of
15 gradient palettes.
A tibble
of 75 rows and
5 columns. with the following fields:
Name of the palette.
Value of the red channel (RGB color mode).
Value of the green channel (RGB color mode).
Value of the blue channel (RGB color mode).
Hex code of the color.
https://leahsmyth.github.io/Princess-Colour-Schemes/index.html.
scale_fill_princess_c()
Other datasets:
cross_blended_hypsometric_tints_db
,
grass_db
,
hypsometric_tints_db
,
volcano2
data("princess_db")
princess_db
# Select a palette
maori <- princess_db %>%
filter(pal == "maori")
f <- system.file("extdata/volcano2.tif", package = "tidyterra")
r <- terra::rast(f)
library(ggplot2)
p <- ggplot() +
geom_spatraster(data = r) +
labs(fill = "elevation")
p +
scale_fill_gradientn(colors = maori$hex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.