sm_palette {smplot2} | R Documentation |
SM custom palette of colors
Description
This is a custom color palette that SM recommends for data visualization. It returns up to 20 different colors with a high contrast.
Usage
sm_palette(colorNum = 10)
Arguments
colorNum |
Number of colors (1-20). |
Value
Returns a hex code in string vector. The input determines the length of the output.
Examples
library(smplot2)
#' sm_palette(3) # returns 3 colors
[Package smplot2 version 0.2.4 Index]