Thanks, I already checked plotmath. But the problem is that the symbol
itself works fine with expression(R^2), but if you want to combine plain
text with the symbol, expression() doesn't work. But I found a solution,
bquote is the magic word:


mtext(line= -1,side=3,bquote(R^2
==.(round(summary(lm4)$r.squared,3))),col="red",cex=0.7)



Thomas
 




__

Thomas Szegvary
Institute of Environmental Geosciences
Department of Geosciences
University of Basel
Bernoullistrasse 30
CH - 4056 Basel

Tel.  41-61-267 04 82
Fax. 41-61-267 04 79
Email: [EMAIL PROTECTED]
www.radon.unibas.ch
www.unibas.ch/environment


 
-----Ursprüngliche Nachricht-----
Von: hadley wickham [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 20. Juli 2007 16:28
An: Thomas Szegvary
Cc: Andrew Niccolai; [EMAIL PROTECTED]; r-sig-geo@stat.math.ethz.ch
Betreff: Re: [R-sig-Geo] Adding R-square to linear regression

On 7/20/07, Thomas Szegvary <[EMAIL PROTECTED]> wrote:
>  except for the R^2 symbol...I found that problem else where too, but 
> have no solution yet.

Have a look at ?plotmath.

Hadley

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to