carto_pal | R Documentation |
Creates a color palette from CARTOcolor
carto_pal(n = NULL, name, ...)
n |
Number of different colors in the palette, minimum depending on palette (2 or 3), maximum depending on palette (7 or 11) |
name |
A palette name |
... |
Additional arguments for grDevices::colorRampPalette |
A character vector
my_colors1 = carto_pal(7, "Burg")
my_colors1
my_colors2 = carto_pal(17, "Burg")
my_colors2
my_colors3 = carto_pal(17, "Safe")
my_colors3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.