aboutsummaryrefslogblamecommitdiff
path: root/man/plot.mkinfit.Rd
blob: 56ee551f724c0accd1ab25176db87c382aaa6107 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                             
                                                                                 
























































                                                                                            
\name{plot.mkinfit}
\alias{plot.mkinfit}
\title{
  Plot the observed data and the fitted model of an mkinfit object.
}
\description{
  Solves the differential equations with the optimised and fixed parameters
  from a previous successful call to \code{\link{mkinfit}} and plots 
  the observed data together with the numerical solution of the fitted model.
}
\usage{
\method{plot}{mkinfit}(x, fit = x, xlab = "Time", ylab = "Observed", 
  xlim = range(fit$data$time), ylim = c(0, max(fit$data$observed, na.rm = TRUE)),
  col_obs = 1:length(fit$mkinmod$map), pch_obs = col_obs, lty_obs = 1, 
  add = FALSE, legend = !add, ...)
}
\arguments{
  \item{x}{
    Alias for fit introduced for compatibility with the generic S3 method.  
}
  \item{fit}{
    an object of class \code{\link{mkinfit}}.
}
  \item{xlab}{
    label for the x axis.
  }
  \item{ylab}{
    label for the y axis.
  }
  \item{xlim}{
    plot range in x direction.
  }
  \item{ylim}{
    plot range in y direction.
  }
  \item{col_obs}{
    colors used for plotting the observed data and the corresponding model prediction lines.
}
  \item{pch_obs}{
    symbols to be used for plotting the data.
}
  \item{lty_obs}{
    line types to be used for the model predictions.
}
  \item{add}{
    should the plot be added to an existing plot?
}
  \item{legend}{
    should a legend be added to the plot?
}
  \item{\dots}{
   further arguments passed to \code{\link{plot}}.
}
}
\value{
  The function is called for its side effect.
}
\examples{
# One parent compound, one metabolite, both single first order.
SFO_SFO <- mkinmod(
  parent = list(type = "SFO", to = "m1", sink = TRUE),
  m1 = list(type = "SFO"))
# Fit the model to the FOCUS example dataset D using defaults
fit <- mkinfit(SFO_SFO, FOCUS_2006_D)
\dontrun{plot(fit)}
}
\author{
  Johannes Ranke
}
\keyword{ hplot }

Contact - Imprint