Creates a plot of the residual for specified kinetic fits

Share:

Description

Function to create a residual plot for a specified fitted model

Usage

1
2
3
  kinresplot(kinobject, kinmodel, 
             xlab = "Time [days]", ylab = "Residual [% of applied radioactivity]",
	     maxabs = "auto")

Arguments

kinobject

A list containing the following elements: The name of the parent compound to be output (parent), the type of the test system (type), the name of the specific test system used for generating this dataset (system), the list of fitted kinetic models (fits), as returned by kinfit, and optionally the list of results (results) as returned by kinresults. Also optional is the label position of the test compound (label) and the source of the data (source).

kinmodel

The fitted model for which the residuals should be plotted.

xlab

Label for the x axis.

ylab

Label for the y axis.

maxabs

Maximum value of the absolute residuals, will be calculated from the residuals if not specified otherwise.

Value

The function is called for its side effect, namely creating a residual plot for the specified fit.

Author(s)

Johannes Ranke

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(FOCUS_2006_C)
kinfits <- kinfit(FOCUS_2006_C)
kinobject <- list(
	parent = "Compound XY",
	type = "Degradation in the environment",
	system = "System 1",	
	source = "Synthetic example data from FOCUS kinetics",
	data = FOCUS_2006_C,
	fits = kinfits,
	results = kinresults(kinfits))	
## Not run: kinresplot(kinobject, "SFO")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.