How to plot "greater than" symbol on the x-axis
Hi Gabor, This works. This is exactly what I want. According to John Fox's reply, I used expression(NA>=1) and it also worked. Thanks for the kind and clever help. Bingshan
Gabor Grothendieck wrote:
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)))