plot_residuals: Plot Residuals of a Model

View source: R/kinfitr_miscfuncs.R

plot_residualsR Documentation

Plot Residuals of a Model

Description

Function to visualise the residuals of a model fit. This function only works for model outputs for which a fit object is available called outputobject$fit.

Usage

plot_residuals(outputobject)

Arguments

outputobject

The output of a kinetic model, including a fit object outputobject$fit

Value

A ggplot2 object of the residual plot

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

# Note: Reference region models, and irreversible binding models, should not
# be used for PBR28 - this is just to demonstrate function

data(pbr28)

t_tac <- pbr28$tacs[[2]]$Times / 60
reftac <- pbr28$tacs[[2]]$CBL
roitac <- pbr28$tacs[[2]]$STR
weights <- pbr28$tacs[[2]]$Weights

srtmout <- srtm(t_tac, reftac, roitac)

plot_residuals(srtmout)

mathesong/kinfitr documentation built on Jan. 15, 2024, 11:07 p.m.