Skip to content
Back to formatted view

Raw Message

Message-ID: <48C57E9A.3040708@mail.montclair.edu>
Date: 2008-09-08T19:35:54Z
From: polishookm
Subject: Pie chart and labels
In-Reply-To: <317737de0809081231g15fa3023ua1644e8757d93730@mail.gmail.com>

Thanks Jorge, that's perfect.

Jorge Ivan Velez wrote:
>
> Dear Mark,
>
> See argument "labels" in ?pie. 
>
> x=c(11, 15, 16, 29, 31)
> pie(x,labels=x,col=c('orange','green','blue','red','purple'))
>
>
> HTH,
>
>
> Jorge
>
>
>
>
>
> On Mon, Sep 8, 2008 at 3:24 PM, polishookm 
> <polishookm at mail.montclair.edu <mailto:polishookm at mail.montclair.edu>> 
> 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
>
>     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 <mailto:polishookm at mail.montclair.edu>
>
>     ______________________________________________
>     R-help at r-project.org <mailto:R-help at r-project.org> mailing list
>     https://stat.ethz.ch/mailman/listinfo/r-help
>     PLEASE do read the posting guide
>     http://www.R-project.org/posting-guide.html
>     and provide commented, minimal, self-contained, reproducible code.
>
>

-- 
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