R: Color Wheel

wheel {colortools} | R Documentation

## Color Wheel

### Description

This function generates a color wheel for a given color

### Usage

      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

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

[Package colortools version 0.1.5 Index]