Re: [R] Superstring in text()

2009-07-26 Thread Andrej Kastrin
Sorry, there should be a caret symbol (^) between "R" and "2". Murray Pung wrote: I'd like to paste a superstring with a number in an object. Thanks for any help. Murray mycor <- cor(1:10,1:10) plot(1:10,1:10) text(8,2,paste(expression(R^2)," = ",mycor)) [[alternative HTML version d

Re: [R] Superstring in text()

2009-07-26 Thread Andrej Kastrin
mycor <- cor(1:10,1:10) plot(1:10,1:10) text(8,2,bquote(R^2 == .(mycor))) HTH, Andrej Murray Pung wrote: I'd like to paste a superstring with a number in an object. Thanks for any help. Murray mycor <- cor(1:10,1:10) plot(1:10,1:10) text(8,2,paste(expression(R^2)," = ",mycor)) [[alt

[R] Superstring in text()

2009-07-26 Thread Murray Pung
I'd like to paste a superstring with a number in an object. Thanks for any help. Murray mycor <- cor(1:10,1:10) plot(1:10,1:10) text(8,2,paste(expression(R^2)," = ",mycor)) [[alternative HTML version deleted]] __ R-help@r-project.org mailing