aboutsummaryrefslogtreecommitdiff
path: root/man/mmkin.Rd
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-11-18 16:28:49 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2016-11-18 16:28:49 +0100
commite7b2d16306b7d03cde66223c9b27abde928f9447 (patch)
tree85d650cfb8e071b00a1228566ec788dc1b477809 /man/mmkin.Rd
parent8bdb67360502bd1a8eb5317d287b094510b4a02c (diff)
Improve examples for showing with pkgdown
- Use quiet= TRUE in dontrun sections - Use mkinsub in model definitions - Avoid \code{\link{}} in titles
Diffstat (limited to 'man/mmkin.Rd')
-rw-r--r--man/mmkin.Rd11
1 files changed, 6 insertions, 5 deletions
diff --git a/man/mmkin.Rd b/man/mmkin.Rd
index 3a8d4a1f..eb6d05eb 100644
--- a/man/mmkin.Rd
+++ b/man/mmkin.Rd
@@ -57,21 +57,22 @@ models <- list(SFO_lin = m_synth_SFO_lin, FOMC_lin = m_synth_FOMC_lin)
datasets <- lapply(synthetic_data_for_UBA_2014[1:3], function(x) x$data)
names(datasets) <- paste("Dataset", 1:3)
-time_default <- system.time(fits.0 <- mmkin(models, datasets))
-time_1 <- system.time(fits.1 <- mmkin(models, datasets, cores = 1))
+time_default <- system.time(fits.0 <- mmkin(models, datasets, quiet = TRUE))
+time_1 <- system.time(fits.4 <- mmkin(models, datasets, cores = 1, quiet = TRUE))
time_default
time_1
-endpoints(fits[["SFO_lin", 2]])
+endpoints(fits.0[["SFO_lin", 2]])
-# Plot.mkinfit handles rows or columns of mmkin result objects
+# plot.mkinfit handles rows or columns of mmkin result objects
plot(fits.0[1, ])
plot(fits.0[1, ], obs_var = c("M1", "M2"))
plot(fits.0[, 1])
# Use double brackets to extract a single mkinfit object, which will be plotted
-# by plot.mkinfit
+# by plot.mkinfit and can be plotted using plot_sep
plot(fits.0[[1, 1]], sep_obs = TRUE, show_residuals = TRUE, show_errmin = TRUE)
+plot_sep(fits.0[[1, 1]])
# Plotting with mmkin (single brackets, extracting an mmkin object) does not
# allow to plot the observed variables separately
plot(fits.0[1, 1])

Contact - Imprint