wheel | R Documentation |
This function generates a color wheel for a given color
wheel(color, num = 12, bg = "gray95", border = NULL, init.angle = 105, cex = 1, lty = NULL, main = NULL, verbose = TRUE, ...)
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
pizza
# wheel color with 18 slices for 'tomato' wheel("tomato", num = 18, bg = "gray20", cex = 0.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.