Add correlation text to scatterplot.
Arguments
- x
vector of the variable for the x-axis.
- y
vector of the variable for the y-axis.
- xcoord
x-coordinate for the location of the text.
- ycoord
y-coordinate for the location of the text.
- size
size of the text font.
- col
color of the text font.
- method
method for calculating the association. One of:
"pearson"= Pearson product moment correlation coefficient"spearman"= Spearman's rho"kendall"= Kendall's tau
See also
Other plot:
plot2WayInteraction(),
ppPlot(),
semPlotInteraction(),
vwReg()
Other correlations:
cor.table(),
crossTimeCorrelation(),
crossTimeCorrelationDF(),
partialcor.table(),
vwReg()

