Description Usage Arguments Value Author(s) See Also Examples
This function will take multiple column names and plot scatterplots against "Resting Heart Rate". Then it fits a linear regression and adds that line. It also says at the bottom what the p-value for the slope coefficient is.
1 |
dataset |
This should just be a dataset with a column name "Resting Heart Rate" |
col_names |
This specifies with columns to plot and do the linear regression. |
response_variable |
A character string of the column name of the response variable |
multivariate |
This is should either be true or false. This determines if plot_lms fits a multivariate regression or it fits a linear regression to each of the columns selected. |
... |
This will pass to the abline function. Therefore, it will control things like color of that line. It doesn't currently do anything to the plotting of the points. |
It will return as many plots as the length of the col_names vector. It shows the regression line fit (whether single or multivariate regression). It also puts the function at the top of the figure.
Corey Kimzey
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.