setColors {colortools}R 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)

[Package colortools version 0.1.5 Index]