diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2014-07-24 09:58:55 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2014-07-24 09:58:55 +0200 |
commit | 8be01094ecbc65d4bdf1e7f819ef01b7a252b39d (patch) | |
tree | ce37e5284d37cb1ebfcd4c3e30f4c07577b8a07e | |
parent | 4c6f29fe2a3ece5a85160b891c89ce0f55299c11 (diff) |
Avoid artificial zero residual in mkinresplot
-rw-r--r-- | DESCRIPTION | 2 | ||||
-rw-r--r-- | NEWS.md | 2 | ||||
-rw-r--r-- | R/mkinresplot.R | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/DESCRIPTION b/DESCRIPTION index de9ff203..2da7f1c1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -3,7 +3,7 @@ Type: Package Title: Routines for fitting kinetic models with one or more state variables to chemical degradation data Version: 0.9-32 -Date: 2014-07-23 +Date: 2014-07-24 Authors@R: c(person("Johannes", "Ranke", role = c("aut", "cre", "cph"), email = "jranke@uni-bremen.de"), person("Katrin", "Lindenberger", role = "ctb"), @@ -16,6 +16,8 @@ ## BUG FIXES +- Avoid plotting an artifical 0 residual at time zero in `mkinresplot` + - In the determination of the degrees of freedom in `mkinerrmin`, formation fractions were accounted for multiple times in the case of parallel formation of metabolites. See the new feature described above for the solution. - `transform_rates=FALSE` in `mkinfit` now also works for FOMC and HS models. diff --git a/R/mkinresplot.R b/R/mkinresplot.R index c9a801fd..82ffd2cb 100644 --- a/R/mkinresplot.R +++ b/R/mkinresplot.R @@ -36,7 +36,8 @@ mkinresplot <- function (object, col_obs <- pch_obs <- 1:length(obs_vars)
names(col_obs) <- names(pch_obs) <- obs_vars
- plot(0, xlab = xlab, ylab = ylab,
+ plot(0, type = "n",
+ xlab = xlab, ylab = ylab,
xlim = xlim,
ylim = c(-1.2 * maxabs, 1.2 * maxabs), ...)
|