View source: R/kinfitr_refPatlak.R
plot_refPatlakfit | R Documentation |
Function to visualise the fit of the refPatlak model to data.
plot_refPatlakfit(refpatlakout, roiname = NULL)
refpatlakout |
The output object of the refPatlak fitting procedure. |
roiname |
Optional. The name of the Target Region to see it on the plot. |
A ggplot2 object of the 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
fit <- refPatlak(t_tac, reftac, roitac, tstarIncludedFrames = 10, weights = weights)
plot_refPatlakfit(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.