The function makes a scatter plot of predicted vs oserved data points, with option to add a smooth function or a best fit line going through the origin, with R squared.
1 | preds_vs_obs_scatter_plot_2(df, x, y, add = NULL)
|
df |
dataframe with the data to plot. |
x |
variable to plot on the x axis. |
y |
variable to plot on the y axis. |
add |
character name of additional feature to add to the plot. Allowed for now are "loess" and "R2". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.