From 08cae49345c048fdbb69befc5a3b3f7966836223 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 16 Oct 2015 16:31:29 +0200 Subject: Full compound names in models that are shown in the plot --- man/mkinsub.Rd | 13 ++++++++++++- man/plot.mkinfit.Rd | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/mkinsub.Rd b/man/mkinsub.Rd index 9eeffda0..352c4097 100644 --- a/man/mkinsub.Rd +++ b/man/mkinsub.Rd @@ -8,7 +8,7 @@ \code{\link{mkinmod}}. } \usage{ -mkinsub(submodel, to = NULL, sink = TRUE) +mkinsub(submodel, to = NULL, sink = TRUE, full_name = NA) } \arguments{ \item{submodel}{ @@ -23,6 +23,12 @@ mkinsub(submodel, to = NULL, sink = TRUE) Should a pathway to sink be included in the model in addition to the pathways to other state variables? } + \item{full_name}{ + An optional name to be used e.g. for plotting fits performed with the model. + You can use non-ASCII characters here, but then your R code will not be + portable, \emph{i.e.} may produce unintended plot results on other + operating systems or system configurations. + } } \value{ A list for use with \code{\link{mkinmod}}. @@ -40,5 +46,10 @@ SFO_SFO <- mkinmod( SFO_SFO.2 <- mkinmod( parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO")) + +# Now supplying full names +SFO_SFO.2 <- mkinmod( + parent = mkinsub("SFO", "m1", full_name = "Test compound"), + m1 = mkinsub("SFO", full_name = "Metabolite M1")) } diff --git a/man/plot.mkinfit.Rd b/man/plot.mkinfit.Rd index f26aac4c..494dc38d 100644 --- a/man/plot.mkinfit.Rd +++ b/man/plot.mkinfit.Rd @@ -82,7 +82,8 @@ \examples{ # One parent compound, one metabolite, both single first order, path from # parent to sink included -SFO_SFO <- mkinmod(parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO")) +SFO_SFO <- mkinmod(parent = mkinsub("SFO", "m1", full = "Parent"), + m1 = mkinsub("SFO", full = "Metabolite M1" )) fit <- mkinfit(SFO_SFO, FOCUS_2006_D, quiet = TRUE) plot(fit) } -- cgit v1.2.1