From d619711839afb6776f003c990e1a77c8fedf1a6a Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 26 Apr 2014 03:04:12 +0200 Subject: Enable selection of observed variables to plot --- man/plot.mkinfit.Rd | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'man') diff --git a/man/plot.mkinfit.Rd b/man/plot.mkinfit.Rd index ccf2960..41682ad 100644 --- a/man/plot.mkinfit.Rd +++ b/man/plot.mkinfit.Rd @@ -9,7 +9,9 @@ the observed data together with the solution of the fitted model. } \usage{ -\method{plot}{mkinfit}(x, fit = x, xlab = "Time", ylab = "Observed", +\method{plot}{mkinfit}(x, fit = x, + obs_vars = vector(), + xlab = "Time", ylab = "Observed", xlim = range(fit$data$time), ylim = c(0, max(fit$data$observed, na.rm = TRUE)), col_obs = 1:length(fit$mkinmod$map), pch_obs = col_obs, lty_obs = rep(1, length(fit$mkinmod$map)), @@ -18,10 +20,14 @@ \arguments{ \item{x}{ Alias for fit introduced for compatibility with the generic S3 method. -} + } \item{fit}{ an object of class \code{\link{mkinfit}}. -} + } + \item{obs_vars}{ + A character vector of names of the observed variables for which the + data and the model should be plotted. + } \item{xlab}{ label for the x axis. } @@ -36,28 +42,28 @@ } \item{col_obs}{ colors used for plotting the observed data and the corresponding model prediction lines. -} + } \item{pch_obs}{ symbols to be used for plotting the data. -} + } \item{lty_obs}{ line types to be used for the model predictions. -} + } \item{add}{ should the plot be added to an existing plot? -} + } \item{legend}{ should a legend be added to the plot? -} + } \item{lpos}{ position of the legend. Passed to \code{\link{legend}} as the first argument. -} + } \item{inset}{ Passed to \code{\link{legend}} if applicable. -} + } \item{\dots}{ further arguments passed to \code{\link{plot}}. -} + } } \value{ The function is called for its side effect. -- cgit v1.2.1