[R] Pie chart and labels

polishookm polishookm at mail.montclair.edu
Mon Sep 8 21:24:28 CEST 2008


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

-- 
Mark Polishook, D.M.A.
Technology Coordinator
Morehead Hall, Rm 132
Center for Academic Advising and Adult Learning
Montclair State University
Montclair, NJ 07043

(973)-655-7114
http://www.montclair.edu/AcademicAdvising/html
polishookm at mail.montclair.edu



More information about the R-help mailing list