
fn_fig_e
fn_fig_e.Rd
Residual plots displayed with a color-coded scale based on weights.
Arguments
- df
A data frame contains the following variables: independent (x) and dependent (y) variables, the fitted variable (fitt), a weighted variable (wi), and additional details including the weights (wi), fitted values (fitt), residuals (ei), and the scale.
- opacity
A numeric value for the alpha aesthetic used to control the transparency of elements in a plot.
- tint
A vector that specifies the palette colors used to color the points.
- scale
A numeric vector that defines the thresholds for coloring the points.
- order
A vector determines the sequence of the plots.
- my_labeller
Transforms objects to labeller functions. Used internally by labeller().
Details
The function creates a graph that displays residuals on the vertical axis and either the independent variable or predicted values on the horizontal axis, as determined by the researcher. The residuals are color-coded using a weighted scale.
Since the parameters contain subscripts, the labels were customized using the `ggplot2::as_labeller()` function and are stored in `my_labeller`.