plot_mrtm2fit: Plot: MRTM2

View source: R/kinfitr_mrtm2.R

plot_mrtm2fitR Documentation

Plot: MRTM2

Description

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

Usage

plot_mrtm2fit(mrtm2out, roiname = NULL, refname = NULL)

Arguments

mrtm2out

The output object of the mrtm2 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 <- mrtm2(t_tac, reftac, roitac, 0.01, weights = weights)

plot_mrtm2fit(fit)

mathesong/kinfitr documentation built on Oct. 11, 2024, 9:33 p.m.