Skip to contents

This plots predicted values against residuals including uncertainty, using the fitted and residual functions on a brmsfit object.

Usage

plot_predicted_residuals(fit, trend = "loess", type = "ordinary")

Arguments

fit

An object of class brmsfit.

trend

show a loess smoother or linear line

type

The type of the residuals, either "ordinary" or "pearson".

Value

a ggplot object

Author

Darcy Webber darcy@quantifish.co.nz