colPalette | R Documentation |
Create a Color Palette. This function generates a custom color palette based on the specified 'palette' name. The color palettes are sourced from two predefined lists: 'taylor_palettes' and 'radiohead_palettes'.
colPalette(palette)
palette |
A character string specifying the name of the colour palette. The palette must be present in either 'taylor_palettes' or 'radiohead_palettes'. |
A colorRampPalette function with the specified colour palette.
my_palette <- colPalette(palette = "evermore")
colours <- my_palette(5)
print(colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.