View source: R/kinfitr_miscfuncs.R
plot_residuals | R Documentation |
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
.
plot_residuals(outputobject)
outputobject |
The output of a kinetic model, including a fit object |
A ggplot2 object of the residual plot
Granville J Matheson, mathesong@gmail.com
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.