[R] Pie chart and labels
Marianne Promberger
mpromber at psych.upenn.edu
Mon Sep 8 21:39:18 CEST 2008
On Monday, 08 September 2008, 15:24 (UTC-0400), polishookm wrote:
> With a pie chart
>
> pie(c(11, 15, 16, 29, 31))
>
> how can I generate labels for the chart, such as
>
> orange: 11
> green: 15
> blue: 16
> red: 29
> purple: 31
>
pie(c(11, 15, 16, 29, 31),labels=c("what","ever","you","want","duh"))
?pie
would have told you this, too.
m.
--
Marianne Promberger
Graduate student in Psychology
http://www.psych.upenn.edu/~mpromber
More information about the R-help
mailing list