[R] How to plot "greater than" symbol on the x-axis

Gabor Grothendieck ggrothendieck at gmail.com
Sun Sep 21 19:08:09 CEST 2008


On Sun, Sep 21, 2008 at 11:23 AM, Li, Bingshan <bli1 at bcm.tmc.edu> wrote:
> 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.
>

Try this:

plot(1:10, xaxt = "n")
for(i in 1:10) axis(1, i, bquote(phantom(0) >= .(i)))



More information about the R-help mailing list