How can I integrate this phrase into the text function: expression(R^2,"=", round(cor(tkw14_cor$TKW, tkw14_cor$Yield),2)) I also tried expression(R^2 == round(cor(tkw14_cor$TKW, tkw14_cor$Yield),2))) and expression(R^2 ~ == ~ round(cor(tkw14_cor$TKW, tkw14_cor$Yield),2))) and all the 'paste' possibilities.. It does not work like this. My goal is to have the text print: R^2 (as superscript) = rounded correlation coefficient.
Thanks,