setColors: Set Colors for a color wheel

View source: R/setColors.R

setColorsR Documentation

Set Colors for a color wheel

Description

This function set a given number of colors to create a color wheel

Usage

  setColors(color, num)

Arguments

color

an R color name or a color in hexadecimal notation

num

integer value indicating how many colors to be added to the wheel

Value

A character vector with the given color and the set of colors to create a wheel color

Author(s)

Gaston Sanchez

See Also

col2HSV

Examples

# create a color wheel based on 'tomato'
setColors("tomato", 12)

# set 7 colors for '#3D6DCC'
setColors("#3D6DCC", 7)

gastonstat/colortools documentation built on April 8, 2022, 5:59 a.m.