[R] Help with plotmath

2006-09-04 Thread Kenneth Cabrera
Hi R users: How can I have several subscript number with a comma in a plot. I would like to have the LaTeX equivalent of x_{i,j}. I try: plot(1:10,1:10,type=n) text(5,5,expression(x[i,j])) but it doesn´t work. Thank you for your help. __

Re: [R] Help with plotmath

2006-09-04 Thread Gabor Grothendieck
Try: text(5,5,expression(x[i * , * j])) On 9/4/06, Kenneth Cabrera [EMAIL PROTECTED] wrote: Hi R users: How can I have several subscript number with a comma in a plot. I would like to have the LaTeX equivalent of x_{i,j}. I try: plot(1:10,1:10,type=n) text(5,5,expression(x[i,j]))

[R] Help with plotmath

2004-06-10 Thread Steve Roberts
There must be a simple answer. I want to plot an expression, where the expression is held in a string variable. The obvious solution along the lines of ex-x^2 plot( c(0,1), c(0,1), main=as.expression(ex) ) gives me the a title x^2 - ie doesn't treat it like an expression. I suspect I don't

Re: [R] Help with plotmath

2004-06-10 Thread Prof Brian Ripley
You *parse* strings to form expressions. plot( c(0,1), c(0,1), main=parse(text=ex) ) On Thu, 10 Jun 2004, Steve Roberts wrote: There must be a simple answer. I want to plot an expression, where the expression is held in a string variable. The obvious solution along the lines of ex-x^2

Re: [R] Help with plotmath

2004-06-10 Thread Petr Pikal
Hi On 10 Jun 2004 at 12:28, Steve Roberts wrote: There must be a simple answer. I want to plot an expression, where the expression is held in a string variable. The obvious solution along the lines of ex-x^2 plot( c(0,1), c(0,1), main=as.expression(ex) ) Plotmath example led me to

Re: [R] Help with plotmath

2004-06-10 Thread Steve Roberts
PROTECTED] Date sent: Thu, 10 Jun 2004 13:44:21 +0200 Subject:Re: [R] Help with plotmath Copies to: [EMAIL PROTECTED] Priority: normal Hi On 10 Jun 2004 at 12:28, Steve Roberts wrote: There must be a simple answer. I want to plot