View source: R/kinfitr_patlakplot.R
plot_Patlakfit | R Documentation |
Function to visualise the fit of the Patlak Plot model to data.
plot_Patlakfit(patlakout, roiname = NULL)
patlakout |
The output object of the Patlak Plot 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
data(pbr28)
t_tac <- pbr28$tacs[[2]]$Times / 60
tac <- pbr28$tacs[[2]]$FC
weights <- pbr28$tacs[[2]]$Weights
input <- blood_interp(
pbr28$procblood[[2]]$Time / 60, pbr28$procblood[[2]]$Cbl_dispcorr,
pbr28$procblood[[2]]$Time / 60, pbr28$procblood[[2]]$Cpl_metabcorr,
t_parentfrac = 1, parentfrac = 1
)
fit <- Patlakplot(t_tac, tac, input, 10, weights, inpshift = 0.1)
plot_Patlakfit(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.