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]]
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)) > > [[alternative HTML version deleted]] >
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 deleted]] >
Possibly Parallel Threads
- Confidence intervals around the MIC (Maximal information coefficient)
- Confidence intervals around the MIC (Maximal information coefficient)
- Confidence intervals around the MIC (Maximal information coefficient)
- Read.csv
- graphics - joining repeated measures with a line