Description Usage Arguments Value See Also Examples
Generates palettes using the GLA colours
1 2 3 4 5 6 7 8 9 |
gla_theme |
One of "default" or "inverse". Default: 'default' |
palette_type |
One of "categorical", "quantitative", "highlight" or "diverging", Default: 'categorical' |
palette_name |
One of the strings "core", "light", "dark", "brand", Default: 'core' |
main_colours |
One or more of "blue", "pink", "green", "red", "yellow", "orange", "purple" or "mayoral" as a string or list, Default: 'mayoral' |
n |
Number of colours in the palette. If palette_type = "Diverging", this is the number of colours on each side of the diverging scale . If palette_type = "Highlight" gla_pal will return main_colours + (n - length(main_colours)) context colours. Default: 6 |
inc0 |
boolean, If TRUE an additional colour representing zero will be added to a quantiative or diverging palettes, Default: FALSE |
remove_margin |
Remove the edges of the palette to get a more central palette. Either 'left', 'right', 'both' or NULL, Default: NULL |
Returns a character vector of length n giving colour hexs.
1 2 3 4 5 6 | ## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.