Skip to content
Prev 207450 / 398506 Next

Paste expression in graph title

Try this:

plot(x, y, main = bquote(R^2 == .(round(summary(lm(y ~ x))$r.squared, 3))))


On Mon, Jan 25, 2010 at 10:06 AM, Paul Chatfield
<p.s.chatfield at reading.ac.uk> wrote: