gla_pal: gla_pal

Description Usage Arguments Value See Also Examples

View source: R/gla_pal.R

Description

Generates palettes using the GLA colours

Usage

1
2
3
4
5
6
7
8
9
gla_pal(
  gla_theme = "default",
  palette_type = "categorical",
  palette_name = "core",
  main_colours = NULL,
  n = 6,
  inc0 = FALSE,
  remove_margin = NULL
)

Arguments

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

Value

Returns a character vector of length n giving colour hexs.

See Also

interp_scale

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

Greater-London-Authority/gglaplot documentation built on Dec. 28, 2021, 8:27 p.m.