Plot of residuals versus linear predictor values
Usage
residuals_linpred_plot(
model,
type = c("deviance", "pearson", "response"),
ylab = NULL,
xlab = NULL,
title = NULL,
subtitle = NULL,
caption = NULL,
point_col = "black",
point_alpha = 1,
line_col = "red"
)
Arguments
- model
a fitted model. Currently only class
"gam"
.- type
character; type of residuals to use. Only
"deviance"
,"response"
, and"pearson"
residuals are allowed.- ylab
character or expression; the label for the y axis. If not supplied, a suitable label will be generated.
- xlab
character or expression; the label for the y axis. If not supplied, a suitable label will be generated.
- title
character or expression; the title for the plot. See
ggplot2::labs()
.- subtitle
character or expression; the subtitle for the plot. See
ggplot2::labs()
.character or expression; the plot caption. See
ggplot2::labs()
.- point_col
colour used to draw points in the plots. See
graphics::par()
section Color Specification. This is passed to the individual plotting functions, and therefore affects the points of all plots.- point_alpha
numeric; alpha transparency for points in plots.
- line_col
colour specification for 1:1 line.