corrPlot {KOGMWU} | R Documentation |
Plots Pearson's correlation between two columns in a dataframe, identified by column names. Also plots linear regression line and lists the correlation coefficient (r) and cor.test p-value.
corrPlot(x, y, data, ...)
x |
Name of the column to form X axis |
y |
Name of the column to form Y axis |
data |
The dataframe containing the two columns |
... |
Additional options for plot() |
Dixon GB, Davies SW, Aglyamova GA, Meyer E, Bay LK and Matz MV (2015) Genomic determinants of coral heat tolerance across latitudes.