Description Usage Arguments Examples
This function allows you to plot a scatterplot using a formula interface with the model-formula and R2 value on top
1 | plot_linreg(df, frml, title = "", method = "lm", se = F, stat.frml = y ~ x)
|
df |
data.frame, A data.frame that is used to plot the variables |
frml |
formula, A formula object for plotting the variables in the form y ~ x |
title |
string, Title of the resulting plot |
method |
string, method that should be used to draw the fitting line |
se |
boolean, should a confidence interval be drawn around the fitting line? |
stat.frmle |
formula, the formula that is used to calculate the model-formula displayed on the plot |
1 2 3 4 5 6 | plot_linreg(df.plot,
frml = T_mean ~ elevation,
title = 'Scatterplot',
method = 'lm',
se = T,
stat.frml = y ~ x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.