View source: R/plot_residual_vs_fitted.R
plot_residual_vs_fitted | R Documentation |
Plot residual vs. fitted plots for your data
plot_residual_vs_fitted( data, raw = TRUE, MOR = TRUE, groups = "Comparison", units = "mmol/L", studentize = TRUE, include_curve = TRUE, save = FALSE, save_path = getwd(), save_name = "Auto", save_device = "pdf", size = 8 )
data |
A data table or data frame grouped by Comparison where for each comparison, residuals and fitted values are included. If you use a raw data set of type LFDT you must specify |
raw |
Is |
MOR |
Is your data table containing mean of replicates? Only need to specify if |
groups |
What are the grouping column names? Only need to specify if |
units |
The units of the analyte considered. These are included in the x-axis and y-axis names of the plots |
studentize |
Should we studentize the residuals. Default is |
include_curve |
Should a smoothing curve be included? Default is |
save |
Save plot to disk. Default is |
save_path |
Saving location given by a string. Default is the working directory |
save_name |
Name of the plot used to save. If |
save_device |
What file do you want to save the plot as. Valid inputs are 'pdf', 'png', 'jpeg', and more. Using 'png' will produce plots with retina |
size |
What should the size of the saved plot be? The number specified is the height of the plot. The width of the plot is calculated based on this and the golden ratio |
A plot (ggplot2
object) based on data.
print(1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.