
Hi John,

It works perfectly. Thank you so much for the help! Have a great day.

Bingshan

-----Original Message-----
From: John Fox [mailto:jfox@mcmaster.ca]
Sent: Sun 9/21/2008 11:14 AM
To: Li, Bingshan
Cc: r-help@r-project.org
Subject: RE: [R] How to plot "greater than" symbol on the x-axis
 
Dear Bingshan,

You can use xlab=expression("" >= "1"), xlab=expression("" >= 1), or
expression(NA >= 1), etc. The point is that >= is a binary operator, so a
well formed expression needs both a left- and right-hand operand.

John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox


> -----Original Message-----
> From: Li, Bingshan [mailto:bli1@bcm.tmc.edu]
> Sent: September-21-08 11:24 AM
> To: John Fox
> Cc: r-help@r-project.org
> Subject: RE: [R] How to plot "greater than" symbol on the x-axis
> 
> Hi John,
> 
> Yes, you are right. I meant "greater-than-or-equal". According to your
> suggestion, I can plot the symbol only. But what I want is to have >=1,
>=2
> and so on as labels on xaxis. I did not make it work. Do you know how to
make
> it? The expression("">=1"") did not work, and paste(expression("">=""), 1)
> did not work either.
> 
> Thanks a lot!
> 
> Bingshan
> 
> 
> -----Original Message-----
> From: John Fox [mailto:jfox@mcmaster.ca]
> Sent: Sun 9/21/2008 8:38 AM
> To: Li, Bingshan
> Cc: r-help@r-project.org
> Subject: RE: [R] How to plot "greater than" symbol on the x-axis
> 
> Dear Bingshan,
> 
> It isn't entirely clear what you want to do. I think that you want the
> "greater-than-or-equal-to" symbol, not "greater than," but by itself or in
> an expression? For the first, xlab=expression("" >= ""), and for the
second,
> e.g., xlab=expression(x >= x[min]). More generally, see ?plotmath.
> 
> I hope this helps,
>  John
> 
> ------------------------------
> John Fox, Professor
> Department of Sociology
> McMaster University
> Hamilton, Ontario, Canada
> web: socserv.mcmaster.ca/jfox
> 
> > -----Original Message-----
> > From: r-help-bounces@r-project.org [mailto:r-help-bounces@r-project.org]
> On
> > Behalf Of Li, Bingshan
> > Sent: September-21-08 12:37 AM
> > To: r-help@r-project.org
> > Subject: [R] How to plot "greater than" symbol on the x-axis
> >
> >
> > Hello everyone,
> >
> > I want to plot a "greater than" symbol (the "_" under ">") on the x-axis
> in
> > the labels. Is it possible to do it?
> >
> > Thanks.
> >
> > Bingshan
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> 
> 
> 
> 





	[[alternative HTML version deleted]]

