aboutsummaryrefslogtreecommitdiff
path: root/R/plot.mmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-04-03 17:40:55 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-04-03 17:40:55 +0200
commit8c19fc5261dc53dc7880b3f54f8f2adf413de996 (patch)
tree193aad4a3b2920ad6bff1d54cd18e992ac179bdd /R/plot.mmkin.R
parent312255078d2529f485a81df2a53d5928622ae81f (diff)
parent47ba9ea512b82fb8b31da8ec5558f3c0952d86d4 (diff)
Merge branch 'master' into mxkin
Merge DESCRIPTION manually to combine dependencies and rerun check to update check.log
Diffstat (limited to 'R/plot.mmkin.R')
-rw-r--r--R/plot.mmkin.R6
1 files changed, 5 insertions, 1 deletions
diff --git a/R/plot.mmkin.R b/R/plot.mmkin.R
index 182e74ca..15ea86eb 100644
--- a/R/plot.mmkin.R
+++ b/R/plot.mmkin.R
@@ -15,6 +15,9 @@
#' @param resplot Should the residuals plotted against time, using
#' \code{\link{mkinresplot}}, or as squared residuals against predicted
#' values, with the error model, using \code{\link{mkinerrplot}}.
+#' @param standardized Should the residuals be standardized? This option
+#' is passed to \code{\link{mkinresplot}}, it only takes effect if
+#' `resplot = "time"`.
#' @param show_errmin Should the chi2 error level be shown on top of the plots
#' to the left?
#' @param errmin_var The variable for which the FOCUS chi2 error value should
@@ -51,6 +54,7 @@
#' @export
plot.mmkin <- function(x, main = "auto", legends = 1,
resplot = c("time", "errmod"),
+ standardized = FALSE,
show_errmin = TRUE,
errmin_var = "All data", errmin_digits = 3,
cex = 0.7, rel.height.middle = 0.9,
@@ -136,7 +140,7 @@ plot.mmkin <- function(x, main = "auto", legends = 1,
}
if (resplot == "time") {
- mkinresplot(fit, legend = FALSE, ...)
+ mkinresplot(fit, legend = FALSE, standardized = standardized, ...)
} else {
mkinerrplot(fit, legend = FALSE, ...)
}

Contact - Imprint