[R] Math expressions in pie chart labels?

ronggui ronggui.huang at gmail.com
Wed May 3 03:33:28 CEST 2006


I think you should use   labels = c(">= 0.66", ">= 0.33", "<= -0.33",
"<= -0.66") .
Note the quote in each element of the vector.

2006/5/3, Johannes Graumann <johannes_graumann at web.de>:
> Hello,
>
> trying to get something like this to work and am failing:
>
> pie(
> c(length(strongN14),length(weakN14),length(weakN15),length(strongN15),length(ambiguous)),
>   labels = c(>= 0.66, >= 0.33, <= -0.33, <= -0.66),
>   col = c("#9999FF","#0000CC","#009900","lightgreen","white")
> )
>
> Can't figure out a way to display the 'greater or equal' ... signs properly.
>
> I'm thankful for any prodding into the right direction.
>
> Joh
>
> ______________________________________________
> 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