## Get n colours
get_colours(vars = 4)
# Get a color-map for each value specified in vars
get_colours(vars = c("p1", "p2", "p3", "p4"))
# 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"))
Run the code above in your browser using DataLab