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.
__
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]))
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
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
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
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