R/get_palette.R
get_palette.Rd
This function retrieves a color palette from the built-in palettes. To see the available palettes, use list_palettes().
list_palettes()
get_palette(palette = "ColorBrewer:Accent")
A character string specifying the name of the color palette to
A character vector of colors in hex format.
get_palette("Vermeer:LittleStreet") #> [1] "#9D3D2D" "#99A8A5" "#8F4C2D" "#6A6A54" "#EADAC5" "#27221F" "#727C73" #> [8] "#C9AA82" "#3A2D22" "#8F5144" "#C9BDA3"