View source: R/plot_residuals.R
plot_residuals | R Documentation |
Plots the randomized quantile residuals of the fitted regression model as described in Dunn and Smyth (1996). This plot can be used to assess the fit of the regression.
plot_residuals(fit, plot = TRUE, text_size = 14)
fit |
the result of running the 'panstripe' function. |
plot |
whether to generate the plot (default) or return a data.frame |
text_size |
the base text size of the plot (default=14) |
either a ggplot2 object or a 'data.frame' with the data needed to recreate the plot
sim <- simulate_pan(rate=1e-4)
fA <- panstripe(sim$pa, sim$tree, nboot=0)
plot_residuals(fA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.