Learn R Programming

smplot2 (version 0.2.5)

sm_color: 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 visibility.

Usage

sm_color(...)

Value

A character/string of hex codes

Arguments

...

The input has to be a character string.of a color name. There are 20 colors available from the SM palette: `'blue'`,`'crimson'`, `'green'`, `'purple'`, `'orange'`, `'skyblue'`, `'pink'`, `'limegreen'`, `'lightpurple'`, `'brown'`, `'red'`, `'lightbrown'`, `'asparagus'`, `'viridian'`, `'darkred'`, `'lightblue'`, `'light blue'`, `'wine'`, `'yellow'`, `'lightgreen'`

Examples

Run this code
library(smplot2)
sm_color('crimson')

sm_color('crimson', 'green', 'blue')

Run the code above in your browser using DataLab