This function plots the residuals for the specified subset of the
observed variables from an mkinfit object. A combined plot of the fitted
model and the residuals can be obtained using plot.mkinfit
using the argument show_residuals = TRUE
.
mkinresplot(object, obs_vars = names(object$mkinmod$map), xlim = c(0, 1.1 * max(object$data$time)), xlab = "Time", ylab = "Residual", maxabs = "auto", legend = TRUE, lpos = "topright", ...)
mkinfit
object.
legend
. plot
.
Nothing is returned by this function, as it is called for its side effect, namely to produce a plot.
mkinplot
, for a way to plot the data and the fitted lines of the
mkinfit object.
Successfully compiled differential equation model from auto-generated C code.