pizza | R Documentation |
This function displays a color wheel with specified colors
pizza(colors, bg = "gray95", border = NA, init.angle = 105, cex = 0.8, lty = 1, labcol = NULL, ...)
colors |
a vector with R color names of colors in hexadecimal notation |
bg |
background color of the plot. Default
|
border |
color of the border separating the pizza 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 |
labcol |
color for the labels (i.e. names of the colors) |
... |
graphical parameters ( |
This function is based on the pie
function
Gaston Sanchez
wheel
# pizza color wheel for rainbow colors pizza(rainbow(7)) # pizza color wheel for tomato (18 colors) pizza(setColors("tomato", 18), bg = "gray20", cex = 0.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.