Description Usage Arguments Value Examples
View source: R/correlation_lm_and_plot.R
Linear model fitting and plotting for 2 numerical variable
1 | correlation_lm_and_plot(data, var1, var2)
|
data |
specifies the data set which the variables are found |
var1 |
the first variable in the relationship, has to be numerical |
var2 |
the second variable in the relationship, has to be numerical |
a list consisting of a tidied up linear model and a plot the plot is a baseline scatter plot of the 2 variables, a linear line of best fit is present on top of the scatter plot
1 2 | correlation_lm_and_plot(datateachr::cancer_sample, datateachr::cancer_sample$ID, datateachr::cancer_sample$concavity_mean)
correlation_lm_and_plot(datateachr::cancer_sample, datateachr::cancer_sample$concave_points_mean, datateachr::cancer_sample$concavity_mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.