sm_palette: SM custom palette of colors

View source: R/sm_palette.R

sm_paletteR 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


smin95/sesplot documentation built on July 2, 2024, 9:35 a.m.