pizza: Pizza color wheel

Description Usage Arguments Details Author(s) See Also Examples

Description

This function displays a color wheel with specified colors

Usage

1
2
3
  pizza(colors, bg = "gray95", border = NA,
    init.angle = 105, cex = 0.8, lty = 1, labcol = NULL,
    ...)

Arguments

colors

a vector with R color names of colors in hexadecimal notation

bg

background color of the plot. Default "gray95"

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 polygon which draws each slice

labcol

color for the labels (i.e. names of the colors)

...

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

Details

This function is based on the pie function

Author(s)

Gaston Sanchez

See Also

wheel

Examples

1
2
3
4
5
# 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)

gastonstat/colortools documentation built on May 16, 2019, 5:45 p.m.