plot_ma2fit: Plot: Ichise Multilinear Analysis 2

View source: R/kinfitr_ma2.R

plot_ma2fitR Documentation

Plot: Ichise Multilinear Analysis 2

Description

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

Usage

plot_ma2fit(ma2out, roiname = NULL)

Arguments

ma2out

The output object of the MA2 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

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 <- ma2(t_tac, tac, input, weights)
plot_ma2fit(fit)

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