kinplot: Creates a plot of the kinetic fits

Description Usage Arguments Value Author(s) Examples

View source: R/kinplot.R

Description

Function to create a plot for a set of fitted models

Usage

1
2
3
kinplot(kinobject, main = "",
        xlab = "Time [days]", ylab = "Parent [% of applied radioactivity]", 
	ylim = c("auto", "auto"), lpos = "topright")

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 input dataset (data), the list of fitted kinetic models (fits), as returned by kinfit, and the list of results (results) as returned by kinresults. In contrast to the function kinreport, the data used for the fitting also has to be in the kinobject list. Optionally also the label position of the test compound (label) and the source of the data (source).

main

Title.

xlab

Label for the x axis.

ylab

Label for the y axis.

ylim

An array of length two holding the range for values on the y axis or "auto".

lpos

Where should the legend be placed? Will be passed on to legend.

Value

The function is called for its side effect, namely creating a plot with the fitted model.

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, kinmodels = c("SFO", "FOMC", "DFOP"))
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: kinplot(kinobject)

kinfit documentation built on May 30, 2017, 4:59 a.m.