x <- 10 plot(1:10, main=bquote(R^2 * "=" * .(x))) On Wed, Jan 18, 2017 at 8:00 PM, Richard M. Heiberger <r...@temple.edu> wrote: > ?plotmath > > > plot(1:10, main=expression(R^2)) > > plot(1:10, main=bquote(R^2 * "=" * .(x))) > > On Wed, Jan 18, 2017 at 7:44 PM, Jake William Andrae > <jake.and...@adelaide.edu.au> wrote: >> Hello, >> >> >> I've added some statistical information as text to some graphs, but I'm >> having a really hard time making the 2 in the R2 label superscript. Does >> anyone have any suggestions? >> >> >> mtext(paste("R2 = ", R2), adj=0, line=1, col="black", cex=0.7) >> >> >> Kind regards >> >> >> Jake Andrae >> PhD Candidate >> Geology & Geophysics - Sprigg Geobiology Centre >> Department of Earth Science >> School of Physical Sciences >> The University of Adelaide, AUSTRALIA 5005 >> Phone: 0407701565 >> Email: jake.and...@adelaide.edu.au >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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.
______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.