corval<-cor(airquality$Solar.R,airquality$Temp,use="complete.obs")
coord<-locator(n=1)
text(coord,expression("Correlation=", corval))
I'm trying to add text that contains both a string and an integer to a plot but I can't find out how to get the numerical value of the variable to display, this is just one of the ways I've tried.
