aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2014-08-29 12:33:26 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2014-08-29 12:33:26 +0200
commit2dc4f2f87048c28252992fe70055e0d7652a61ef (patch)
treec4221b528665b50932d30cdc231d90a2bb813bcc
parentf30472ecd2afea6bd2153b8ad2bb2f663f3a2742 (diff)
Avoid an unnecessary warning
-rw-r--r--NEWS.md8
-rw-r--r--R/plot.mkinfit.R2
2 files changed, 5 insertions, 5 deletions
diff --git a/NEWS.md b/NEWS.md
index 1ed94c97..0d690b37 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -12,10 +12,10 @@
- `mkinfit()`: The initial value (state.ini) for the parent compound was not set when the parent was not the (only) variable with the highest value in the observed data.
-- `mkinerrmin()`: When checking for degrees of freedom for metabolites, check
- if their time zero value is fixed instead of checking if the observed value
- is zero. This ensures correct calculation of degrees of freedom also in cases
- where the metabolite residue at time zero is greater zero.
+- `mkinerrmin()`: When checking for degrees of freedom for metabolites, check if their time zero value is fixed instead of checking if the observed value is zero. This ensures correct calculation of degrees of freedom also in cases where the metabolite residue at time zero is greater zero.
+
+- `plot.mkinfit()`: Avoid a warning message about only using the first component of ylim that occurred when ylim was specified explicitly
+
## MINOR CHANGES
diff --git a/R/plot.mkinfit.R b/R/plot.mkinfit.R
index 4132d96c..31746fb8 100644
--- a/R/plot.mkinfit.R
+++ b/R/plot.mkinfit.R
@@ -31,7 +31,7 @@ plot.mkinfit <- function(x, fit = x,
{
if (add && show_residuals) stop("If adding to an existing plot we can not show residuals")
- if (ylim == "default") {
+ if (ylim[[1]] == "default") {
ylim = c(0, max(subset(fit$data, variable %in% obs_vars)$observed, na.rm = TRUE))
}

Contact - Imprint