Learn R Programming

colortools (version 0.1.5)

setColors: 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

See Also

col2HSV

Examples

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

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

Run the code above in your browser using DataLab