[R] line break in pie chart labels
Jim Lemon
jim at bitwrit.com.au
Thu Sep 28 23:50:50 CEST 2006
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
More information about the R-help
mailing list