Re: [R] Double inequality with plotmath

2010-01-21 Thread Mark Seeto
Thank you very much Duncan. I see I also had the mistake of a "c" instead of "expression" in my question. Mark On Fri, Jan 22, 2010 at 7:59 AM, Duncan Murdoch wrote: > On 21/01/2010 3:50 PM, Mark Seeto wrote: >> >> Hello, >> >> I'm fairly new to R and I can't work out how to produce a double >>

Re: [R] Double inequality with plotmath

2010-01-21 Thread Duncan Murdoch
On 21/01/2010 3:50 PM, Mark Seeto wrote: Hello, I'm fairly new to R and I can't work out how to produce a double inequality like (LaTeX) $0 \leq x \leq 1$ in the legend of a graph. If I try > legend(50, 0.1, legend = c(expression(0 <= x <= 1), c(2 <= x <= 3)), pch = c(1,1), col = c(2, 3)) the

[R] Double inequality with plotmath

2010-01-21 Thread Mark Seeto
Hello, I'm fairly new to R and I can't work out how to produce a double inequality like (LaTeX) $0 \leq x \leq 1$ in the legend of a graph. If I try > legend(50, 0.1, legend = c(expression(0 <= x <= 1), c(2 <= x <= 3)), pch = > c(1,1), col = c(2, 3)) then I get an error message "unexpected '<='