sm_palette | R Documentation |
This is a custom color palette of smplot2. It returns up to 20 different colors with a high contrast.
sm_palette(colorNum = 10)
colorNum |
Number of colors (1-20). |
Returns a hex code in string vector. The input determines the length of the output.
library(smplot2)
#' sm_palette(3) # returns 3 colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.