Re: [R] Math expressions in pie chart labels?

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Thu 04 May 2006 - 03:35:20 EST

As a workaround you could use pie3D in the plotrix package with height=0 and theta=pi, e.g.

library(plotrix)
pie3D(1:3, height = 0, theta = pi,

        labels = expression("" >= 1, "" == 2, "" <= 3))

On 5/3/06, Johannes Graumann <johannes_graumann@web.de> wrote:
> On Wednesday 03 May 2006 09:05, Uwe Ligges wrote:
> > Ah, I see, this happens in pie()'s line:
> >
> > if (!is.na(lab <- labels[i]) && lab != "") {
> >
> > where lab is one element of the expression.
> > I'd like to propose to change that line to
> >
> > if (!is.na(lab <- labels[i]) && nchar(lab) > 0) {
>
> What's the canonical way of patching something like this in R? Redefining the
> function at the start of your script?
>
> Joh
>
>
>



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 Received on Thu May 04 03:42:58 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 04 May 2006 - 04:09:58 EST.

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