The simplePie function draws a simple pie chart at specified coordinates with
specified width, height and color. The simpleRug function draws a
corresponding rug plot.
Usage
simplePie(x, y, w, h, v, col, res = 100)
simpleRug(x, y, w, h, v, col)
Arguments
x,y
coordinates at which to draw the plot
w,h
width and height of the plot
v
sizes of the slices
col
colors of the slices
res
resolution (number of polygon edges in a full circle)
Details
simplePie() draws a pie chart with width w and height h at coordinates
(x,y). The size of the slices is taken from the numeric vector v, and
their color from the character vector col.