From c6079a807e2b400fe0c772603392aeacd887da2f Mon Sep 17 00:00:00 2001
From: Johannes Ranke mkinfit
and plots
the observed data together with the solution of the fitted model.
If the current plot device is a tikz
device,
- then latex is being used for the formatting of the chi2 error level,
+ then latex is being used for the formatting of the chi2 error level,
if show_errmin = TRUE
.
Should residuals be shown? If only one plot of the fits is shown, the - residual plot is in the lower third of the plot? Otherwise, i.e. if + residual plot is in the lower third of the plot. Otherwise, i.e. if "sep_obs" is given, the residual plots will be located to the right of the plots of the fitted curves.
Should squared residuals and the error model be shown? If only one plot of + the fits is shown, this plot is in the lower third of the plot. + Otherwise, i.e. if "sep_obs" is given, the residual plots will be located + to the right of the plots of the fitted curves.
Maximum absolute value of the residuals. This is used for the scaling of @@ -263,14 +272,18 @@ plot_sep(fit, sep_obs = TRUE, show_residuals = TRUE, show_errmin = TRUE, …
+plot_sep(fit, lpos = c("topright", "bottomright")) + +# Show the observed variables separately, with the error model +plot(fit, sep_obs = TRUE, show_errplot = TRUE, lpos = c("topright", "bottomright"), + show_errmin = TRUE)# One parent compound, one metabolite, both single first order, path from # parent to sink included SFO_SFO <- mkinmod(parent = mkinsub("SFO", "m1", full = "Parent"), - m1 = mkinsub("SFO", full = "Metabolite M1" ))#>#> Warning: Observations with value of zero were removed from the dataplot(fit)#>#> Warning: Observations with value of zero were removed from the dataplot(fit)# Show the observed variables separately -plot(fit, sep_obs = TRUE, lpos = c("topright", "bottomright"))# Show the observed variables separately, with residuals plot(fit, sep_obs = TRUE, show_residuals = TRUE, lpos = c("topright", "bottomright"), - show_errmin = TRUE)+ show_errmin = TRUE)# The same can be obtained with less typing, using the convenience function plot_sep -plot_sep(fit, lpos = c("topright", "bottomright"))