
Return colour-blind friendly colours
get_colours.Rd
Utility function to return either a distinct colour-blind friendly colour for each variable or if a functional grouping is specified, then shades of the same colour for variables within a functional group
Examples
## Get n colours
get_colours(vars = 4)
#> [1] "#009E73" "#AA4499" "#0072B2" "#F0E442"
# Get a color-map for each value specified in vars
get_colours(vars = c("p1", "p2", "p3", "p4"))
#> [1] "#009E73" "#AA4499" "#0072B2" "#F0E442"
# Group values of vars using FG. Variables in the same group
# will have same shades of a colour
get_colours(vars = 4, FG = c("G1", "G1", "G2", "G2"))
#> [1] "#2D6852" "#5FCBA0" "#7A406F" "#B26CA5"