powered by
Colour palette generation from matrix of RGB values
mcolors( n, colmatrix = matrix(c(0, 0, 1, 1, 1, 1, 1, 0, 0), 3, 3, byrow = TRUE) )
A vector of n colours in hexadecimal RGB format.
Integer number of colorus to produce.
A numeric matrix of three columns (R,G,B) to generate colour palette from.
matrix
mcolors(5)
Run the code above in your browser using DataLab