corrPlot {KOGMWU}R Documentation

Plots a pairwise correlation with linear regression line

Description

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.

Usage

corrPlot(x, y, data, ...)

Arguments

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()

References

Dixon GB, Davies SW, Aglyamova GA, Meyer E, Bay LK and Matz MV (2015) Genomic determinants of coral heat tolerance across latitudes.


[Package KOGMWU version 1.2 Index]