View source: R/plot_residuals_func.R
plot_residuals_func | R Documentation |
This functions take a nested df containing a model information including the column augment
and return the residuals for a given model. Use this function chained with the extract_model_info()
.
plot_residuals_func( model_nsdf, augmented_df = "augment", faceted_by_1 = "Condition + Animal", faceted_by_2 = "." )
model_nsdf |
A nested df containing a model object and previously processed with the |
augmented_df |
The column name containing the df with the fit vs residuals values of the model. By default this columns in named |
faceted_by_1 |
A string. Grouping variables for visualization. Default to |
faceted_by_2 |
A string. Additional grouping variables for visualization. Default to |
A new column called res_vs_fit_plot
containing ggplot objects with the residual plots of the model.
Make sure that the column of with your variable names are named Parameters
or variables
otherwise the plot names will crash. Similarly, name your column with the name of the model as model_name
or could output unexpected results.
# No run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.