powered by
This is a custom color palette of smplot2. It returns up to 20 different colors with a high contrast.
sm_palette(colorNum = 10)
Returns a hex code in string vector. The input determines the length of the output.
Number of colors (1-20).
library(smplot2) #' sm_palette(3) # returns 3 colors
Run the code above in your browser using DataLab