scale_color_map | R Documentation |
Create a custom number of colors to use for graphing or mapping based on preset color palettes.
scale_color_map(palette, num, na.value = "grey90", rev = FALSE)
palette |
color palette name |
num |
number of colors to create |
na.value |
a color value for NA, defaults to light gray |
rev |
condition to reverse the order of the colors |
a ggplot color palette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.