Values in scatterplot??
Hi R-listers, I am having trouble plotting the values for the R2 line, lowess smooth, smothered conditional spread, outlier identification. I have tried the function text and legend but was unsuccessful. Please see below. Your help would be appreciated. Thanks in advance. Jean library(car)
SPHSHTL <- scatterplot(HSuccess ~ HTL,
+ data = data.to.analyze, + xlab = "Distance to high tide line (metres)", + ylab = "Hatching success (%)")
legend("topright", bty="n", legend=paste("R2 is",
+ format(summary(SPHSHTL)$adj.r.squared, digits=4))) Error in summary(SPHSHTL)$adj.r.squared : $ operator is invalid for atomic vectors
text(SPHSHTL)
Error in text.default(SPHSHTL) : zero length 'labels' -- View this message in context: http://r.789695.n4.nabble.com/Values-in-scatterplot-tp4631431.html Sent from the R help mailing list archive at Nabble.com.