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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 06 Jun 2005 - 16:52:01 EST

On Sun, 5 Jun 2005, Krista Chin wrote:

> 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")

You want >= as part of the expression, not part of a character string. I suspect

         expression(Area >= 5*m^2)

is what you intended.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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 17:06:12 2005

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