Learn R Programming

smplot2 (version 0.2.5)

sm_palette: 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)

Value

Returns a hex code in string vector. The input determines the length of the output.

Arguments

colorNum

Number of colors (1-20).

Examples

Run this code
library(smplot2)
#' sm_palette(3) # returns 3 colors

Run the code above in your browser using DataLab