Re: [R] greater-than-or-equal-to symbol in a legend

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon 06 Jun 2005 - 11:20:14 EST

On 6/5/05, Krista Chin <057448c@acadiau.ca> wrote:
> Hello,
>
> I am unable to get the greater-than-or-equal-to symbol (?) in a legend.
> I am able to get pi, squares, sqrt, but not this particular symbol. Can
> anyone tell me what I am doing wrong?
>
> legend(locator(n=1), legend = c("Observed", expression("Area < 5"* m^2),
> expression("Area >= 5"*m^2)), pch=c(1,16,4), bg="white")
>

Remove the quotes:

legend(locator(n=1), legend = c("Observed", expression(Area < 5 * m^2),

     expression(Area >= 5*m^2)), pch=c(1,16,4), bg="white")



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 Mon Jun 06 11:26:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST