aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2014-10-22 09:18:41 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2014-10-22 09:18:41 +0200
commitc0803a4e6660a6ad3a3a219476b6269bab528bfe (patch)
treef2966cc751eeeef10bc88fc3c0a050404d8db2ed /R
parent65d31e345f9e61e9d05584b24df6a01c6c6ed18d (diff)
Always include 0 on y axis when plotting during the fit
Diffstat (limited to 'R')
-rw-r--r--R/mkinfit.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/mkinfit.R b/R/mkinfit.R
index 6494ea1e..e7cab1ee 100644
--- a/R/mkinfit.R
+++ b/R/mkinfit.R
@@ -281,7 +281,7 @@ mkinfit <- function(mkinmod, observed,
atol = atol, rtol = rtol, ...)
plot(0, type="n",
- xlim = range(observed$time), ylim = range(observed$value, na.rm=TRUE),
+ xlim = range(observed$time), ylim = c(0, max(observed$value, na.rm=TRUE)),
xlab = "Time", ylab = "Observed")
col_obs <- pch_obs <- 1:length(obs_vars)
lty_obs <- rep(1, length(obs_vars))

Contact - Imprint