powered by
Creates a color palette from CARTOcolor
carto_pal(n = NULL, name)
A character vector
Number of different colors in the palette, minimum depending on palette (2 or 3), maximum depending on palette (7 or 11)
A palette name
my_colors = carto_pal(7, "Burg") my_colors
Run the code above in your browser using DataLab