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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to