[R] superscript

fgg fabio_ufes at hotmail.com
Tue Feb 1 21:20:45 CET 2011


Hi there, 

How can I superscript the "2" of "r2 =..." in the legend below? 

legend(210, 110, paste("r2 = ",
format(summary(regression)$adj.r.squared,digits=3), sep="")) 

I usually use "expression(paste(...", but it won't work this time because
"format(summary(..." needs to be evaluated. 

Thanks in advance!
-- 
View this message in context: http://r.789695.n4.nabble.com/superscript-tp3252881p3252881.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list