[R] Math expressions in pie chart labels?

ronggui ronggui.huang at gmail.com
Wed May 3 08:51:13 CEST 2006


> Then please read ?plotmath and use it:
>
> labels = expression("" >= 0.66, "" == 0.33, "" <= -0.33, "" <= -0.66)


> pie(1:3,lab="")
> text(locator(3),lab=expression("">=1,""=2,""<=3))
Error: attempt to use zero-length variable name
> text(locator(3),lab=expression(NULL>=1,NULL=2,NULL<=3))

What 's the problem come from?
It seems that NULL>=something is prefered to "">=something,isn't it?

> version
               _
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status
major          2
minor          3.0
year           2006
month          04
day            24
svn rev        37909
language       R
version.string Version 2.3.0 (2006-04-24)

> > ______________________________________________
> > R-help at 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
>
> ______________________________________________
> R-help at 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
>


--
»ÆÈÙ¹ó
Deparment of Sociology
Fudan University




More information about the R-help mailing list