aboutsummaryrefslogtreecommitdiff
path: root/R/plot.mkinfit.R
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 /R/plot.mkinfit.R
parentf30472ecd2afea6bd2153b8ad2bb2f663f3a2742 (diff)
Avoid an unnecessary warning
Diffstat (limited to 'R/plot.mkinfit.R')
-rw-r--r--R/plot.mkinfit.R2
1 files changed, 1 insertions, 1 deletions
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