quick_lm | R Documentation |
Fit and plot a two-term linear model quickly
quick_lm(formula, data, ...)
formula |
(Formula) A two-term formula for both the linear model and the plot. |
data |
(Dataframe) The dataframe to use for fitting and plotting. |
... |
(Args) Arguments that will be passed to |
A plot that shows a fit line and lists intercept, slope, and r-square,
adjusted r-squared, etc. Invisibly returns the lm
fit object so that it can
be inspected.
Desi Quintans (http://www.desiquintans.com)
quick_lm(Petal.Length ~ Sepal.Length, iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.