diff options
author | jranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb> | 2013-11-04 09:16:12 +0000 |
---|---|---|
committer | jranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb> | 2013-11-04 09:16:12 +0000 |
commit | 108955dfe9f328605844b5bfa6ed10190cb739e3 (patch) | |
tree | 743eda54b4fb4df500f4aea284ec1a3fe4cb22c8 /R/plot.mkinfit.R | |
parent | 550913517889140dd0bb0cb686d871f3969920f5 (diff) |
Complete the fix for fixing initial values for state variables
git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/kinfit/pkg/mkin@133 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Diffstat (limited to 'R/plot.mkinfit.R')
-rw-r--r-- | R/plot.mkinfit.R | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/R/plot.mkinfit.R b/R/plot.mkinfit.R index a07ddea1..d4ad6c42 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) |