plot_srtmfit: Plot: Simplified Reference Tissue Model

View source: R/kinfitr_srtm.R

plot_srtmfitR Documentation

Plot: Simplified Reference Tissue Model

Description

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

Usage

plot_srtmfit(srtmout, roiname = NULL, refname = NULL)

Arguments

srtmout

The output object of the SRTM fitting procedure.

roiname

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

refname

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

Value

A ggplot2 object of the plot.

Author(s)

Granville J Matheson, mathesong@gmail.com

Examples

data(simref)

t_tac <- simref$tacs[[2]]$Times
reftac <- simref$tacs[[2]]$Reference
roitac <- simref$tacs[[2]]$ROI1
weights <- simref$tacs[[2]]$Weights

fit <- srtm(t_tac, reftac, roitac, weights, frameStartEnd = c(1, 33))

plot_srtmfit(fit)

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