plot_refPatlakfit: Plot: Patlak Reference Tissue Model

View source: R/kinfitr_refPatlak.R

plot_refPatlakfitR Documentation

Plot: Patlak Reference Tissue Model

Description

Function to visualise the fit of the refPatlak model to data.

Usage

plot_refPatlakfit(refpatlakout, roiname = NULL)

Arguments

refpatlakout

The output object of the refPatlak fitting procedure.

roiname

Optional. The name of the Target Region to see it on the plot.

Value

A ggplot2 object of the 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

fit <- refPatlak(t_tac, reftac, roitac, tstarIncludedFrames = 10, weights = weights)

plot_refPatlakfit(fit)

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