Description Usage Arguments Details Value Author(s) See Also Examples
This function generates a color wheel for a given color
1 2 3 |
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 |
main |
an overall title for the plot |
verbose |
logical value indicating whether to return the color names |
... |
graphical parameters ( |
This function is based on the pie
function
A character vector with the color names of the generated wheel in hexadecimal notation
Gaston Sanchez
1 2 | # wheel color with 18 slices for 'tomato'
wheel("tomato", num = 18, bg = "gray20", cex = 0.7)
|
[1] "#FF6347" "#FFA047" "#FFDE47" "#E3FF47" "#A6FF47" "#68FF47" "#47FF63"
[8] "#47FFA0" "#47FFDE" "#47E3FF" "#47A6FF" "#4768FF" "#6347FF" "#A047FF"
[15] "#DE47FF" "#FF47E3" "#FF47A6" "#FF4768"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.