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

Usage

sm_color(...)

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''

Value

A character/string of hex codes

Examples

library(smplot2)
sm_color('crimson')

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

[Package smplot2 version 0.2.1 Index]