Re: [R] Mathematical expression

2010-07-22 Thread Peter Dalgaard
Uwe Ligges wrote: > > On 22.07.2010 21:47, Filoche wrote: >> Hi everyone. >> >> I'm trying to display the r^2 of a linear regression on a plot using >> text(...). I first build the string to display. However, I can't find why >> this is not working (it display literally r^2 instead of r superscri

Re: [R] Mathematical expression

2010-07-22 Thread Filoche
Hi. This is working fine. Thank you for your help. Best regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/Mathematical-expression-tp2299253p2299364.html Sent from the R help mailing list archive at Nabble.com. __ R-help

Re: [R] Mathematical expression

2010-07-22 Thread Uwe Ligges
On 22.07.2010 21:47, Filoche wrote: Hi everyone. I'm trying to display the r^2 of a linear regression on a plot using text(...). I first build the string to display. However, I can't find why this is not working (it display literally r^2 instead of r superscript 2). r2string = expression(pa

[R] Mathematical expression

2010-07-22 Thread Filoche
Hi everyone. I'm trying to display the r^2 of a linear regression on a plot using text(...). I first build the string to display. However, I can't find why this is not working (it display literally r^2 instead of r superscript 2). r2string = expression(paste(r^2)," = ", r2); Any help would be

Re: [R] mathematical expression in varnames of lattice parallel plot

2010-06-30 Thread Deepayan Sarkar
On Mon, Jun 28, 2010 at 6:32 PM, Doris Brockmann wrote: > How can I insert mathematical expressions for variable names in a lattice > parallel plot? I tried to implement mathematical expressions in varnames, > however, without success. > > For example, neither > > parallel(~iris[1:4] | Species, ir

[R] mathematical expression in varnames of lattice parallel plot

2010-06-28 Thread Doris Brockmann
How can I insert mathematical expressions for variable names in a lattice parallel plot? I tried to implement mathematical expressions in varnames, however, without success. For example, neither parallel(~iris[1:4] | Species, iris, varnames=c("P[Width]", "Petal[length]", "alpha[Width]

[R] mathematical expression of probability function?

2008-06-04 Thread J S
Dear R forum, I have a concern regarding a mathematical expression of the probability function (see below). I know how to write it for only one index i, but we have two : i (country) and j (year). We have a set of N observations of country year ij (or ith country in jth year). Basically, I