sm_palette: A custom palette of colors

View source: R/sm_palette.R

sm_paletteR Documentation

A custom palette of colors

Description

This is a custom color palette of smplot2. 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/sesR documentation built on Feb. 3, 2025, 10:51 p.m.