setColors: Set Colors for a color wheel

Description Usage Arguments Value Author(s) See Also Examples

View source: R/setColors.R

Description

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

Usage

1
  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

1
2
3
4
5
# create a color wheel based on 'tomato'
setColors("tomato", 12)

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

Example output

 [1] "#FF6347" "#FFBF47" "#E3FF47" "#87FF47" "#47FF63" "#47FFBF" "#47E3FF"
 [8] "#4787FF" "#6347FF" "#BF47FF" "#FF47E3" "#FF4787"
[1] "#3D6DCC" "#883DCC" "#CC3D96" "#CC5F3D" "#BFCC3D" "#44CC3D" "#3DCCB0"

colortools documentation built on May 2, 2019, 2:10 p.m.