wheel: Color Wheel

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/wheel.R

Description

This function generates a color wheel for a given color

Usage

1
2
3
  wheel(color, num = 12, bg = "gray95", border = NULL,
    init.angle = 105, cex = 1, lty = NULL, main = NULL,
    verbose = TRUE, ...)

Arguments

color

an R color name or a color in hexadecimal notation

num

integer value indicating how many colors to be generated for the color wheel

bg

background color of the plor

border

color of the border separating the slices

init.angle

integer value indicating the start angle (in degrees) for the slices

cex

numeric value indicating the character expansion of the labels

lty

argument passed to polygon which draws the slices

main

an overall title for the plot

verbose

logical value indicating whether to return the color names

...

graphical parameters (par) can be given as argument to wheel

Details

This function is based on the pie function

Value

A character vector with the color names of the generated wheel in hexadecimal notation

Author(s)

Gaston Sanchez

See Also

pizza

Examples

1
2
# wheel color with 18 slices for 'tomato'
wheel("tomato", num = 18, bg = "gray20", cex = 0.7)

Example output

 [1] "#FF6347" "#FFA047" "#FFDE47" "#E3FF47" "#A6FF47" "#68FF47" "#47FF63"
 [8] "#47FFA0" "#47FFDE" "#47E3FF" "#47A6FF" "#4768FF" "#6347FF" "#A047FF"
[15] "#DE47FF" "#FF47E3" "#FF47A6" "#FF4768"

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

Related to wheel in colortools...