Skip to content

Pie chart and labels

4 messages · Jorge Ivan Velez, polishookm, Marianne Promberger

#
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

rather than the default labels that are drawn automatically

1
2
3
4
5
#
Thanks Jorge, that's perfect.
Jorge Ivan Velez wrote:

  
    
#
On Monday, 08 September 2008, 15:24 (UTC-0400), polishookm wrote:
pie(c(11, 15, 16, 29, 31),labels=c("what","ever","you","want","duh"))


?pie  

would have told you this, too.

m.