Skip to contents

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

Usage

plot_implied_residuals(fit, data = NULL, year = "Year", groups = "Species")

Arguments

fit

An object of class brmsfit.

data

a data frame with the same dimensions as the model data

year

the year column

groups

the grouping/facet variable

Value

a ggplot object

Author

Darcy Webber darcy@quantifish.co.nz