Re: [R] line break in pie chart labels

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Thu 28 Sep 2006 - 21:50:50 GMT

Benjamin Otto wrote:
> Hi,
>
>
>
> Given a pie chart with some really long labels can R insert line breaks
> here? Why I imagine is getting a label displayed as
>
>
>
>

>>some really extraordinary 

>
>
>>long and non-ending label

>
>
>
>
> Instead of
>
>
>
>

>>some really extraordinary long and non-ending label
>

Hi Benjamin,

Try:

pie(1:4,labels=c("The first\nlong label",

  "The second, even\nlonger label",
  "The third, quite\nboring and\nstill longer\nlabel",
  "The fourth, final\nflagrantly\nverbose and\nlongest label\nof the lot"))

Jim



R-help@stat.math.ethz.ch 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. Received on Thu Sep 28 18:30:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 28 Sep 2006 - 10:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.