| scale_group_data | R Documentation | 
Designed for use with layer_group_data. group_data_pal generates palettes that are passed to ggplot2::scale_fill_manual and ggplot2::scale_color_manual.
scale_group_data( ..., data, col = NULL, palette = NULL, n = NULL, direction = 1, na.value = "grey50", drop = FALSE, limits = NULL, aesthetics = "fill" ) group_data_pal(data, palette = NULL, col = NULL, n = NULL, direction = 1) get_group_data_pal_scale(data, col = NULL, palette = NULL, ...)
| ... | Arguments passed on to  
 | 
| data | Data to use when generating scale or palette. | 
| col | Grouping column found in data to use in generating scale or
palette; defaults to  | 
| palette | Name of palette as a string. Must be on the form packagename::palettename. | 
| n | Number of colors desired. If omitted, returns complete palette. | 
| direction | Either  | 
| na.value | The aesthetic value to use for missing ( | 
| drop | Should unused factor levels be omitted from the scale?
The default,  | 
| limits | One of: 
 | 
| aesthetics | Character string or vector of character strings listing the
name(s) of the aesthetic(s) that this scale works with. This can be useful, for
example, to apply colour settings to the  | 
scales::viridis_pal()
paletteer::paletteer_d()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.