piechart {RcmdrMisc} | R Documentation |
Draw a Piechart With Percents or Counts in the Labels
Description
piechart
is a front-end to the standard R pie
function, with the
capability of adding percents or counts to the pie-segment labels.
Usage
piechart(x, scale = c("percent", "frequency", "none"),
col = rainbow_hcl(nlevels(x)), ...)
Arguments
x |
a factor or other discrete variable; the segments of the pie correspond to the
unique values (levels) of |
scale |
parenthetical numbers to add to the pie-segment labels; the default is |
col |
colors for the segments; the default is provided by the |
... |
further arguments to be passed to |
Author(s)
John Fox jfox@mcmaster.ca
See Also
Examples
with(Duncan, piechart(type))
[Package RcmdrMisc version 2.9-1 Index]