This function uses prime numbers to select colors from
prettyGraphsColors
.
prettyGraphsColorSelection(n.colors = 1, offset = NULL, starting.color = 163)
a matrix of colors are returned.
number of colors needed
numeric. Should be a prime number, if it is not, the closest prime is selected. This number decides the distance between indices for color selection.
numeric. This is the starting location (e.g., color)
in a matrix of prettyGraphsColors
.
Derek Beaton
prime number selection from here:
http://stackoverflow.com/questions/3789968/generate-a-list-of-primes-in-r-up-to-a-certain-number
prettyGraphsColors
,
prettyGraphsHSVColorSelection