View source: R/plot_residual_histograms.R
plot_residual_histograms | R Documentation |
Plotting of histograms of residuals to visualize the normality assumption
plot_residual_histograms( data, raw = FALSE, MOR = TRUE, groups = "Comparison", method = "SNRR", 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 with data generated from |
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 |
method |
What method should be used to calculate the optimal bandwidths |
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 raw residuals. Default is |
include_curve |
Should a density curve of a N(0,1) be displayed over the histogram to visualize the assumed normality. Only relevant if |
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.