aboutsummaryrefslogtreecommitdiff
path: root/R/plot.mkinfit.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/plot.mkinfit.R')
-rw-r--r--R/plot.mkinfit.R5
1 files changed, 4 insertions, 1 deletions
diff --git a/R/plot.mkinfit.R b/R/plot.mkinfit.R
index a07ddea..d4ad6c4 100644
--- a/R/plot.mkinfit.R
+++ b/R/plot.mkinfit.R
@@ -38,7 +38,10 @@ plot.mkinfit <- function(x, fit = x,
rownames(subset(fit$start, type == "state")),
rownames(subset(fit$fixed, type == "state")))
odeini <- parms.all[ininames]
- names(odeini) <- names(fit$mkinmod$diffs)
+
+ # Order initial state variables
+ names(odeini) <- sub("_0", "", names(odeini))
+ odeini <- odeini[names(fit$mkinmod$diffs)]
outtimes <- seq(xlim[1], xlim[2], length.out=100)

Contact - Imprint