R/plot_cor.R
plot_cor.Rd
plot_cor
plot_cor(x, y, data)
x variable
y variable
data that contains the x and y variables
ggplot2 figure with correlation statistics
plot_cor('yrs.service', 'yrs.since.phd', carData::Salaries) #> `geom_smooth()` using formula = 'y ~ x'