View source: R/define_arrow_layout.R
define_arrow_layout | R Documentation |
Combine information for each arrow's origin, destination, label,
width, color and scaling into a data.frame
.
define_arrow_layout(qmd_info = NULL, scaling = TRUE,
arrow_scale_fun = function(x) { x }, clearance_mode = FALSE,
color_scaling = "RSE", color_cutoff = c(25, 50), labels = TRUE,
parse_labels = TRUE, alpha = 1, arrow_color_manual = NULL,
unscaled_color = NULL, font = "Avenir", arrow_fontsize = 1)
qmd_info |
a |
scaling |
logical, if |
arrow_scale_fun |
a function to be used for arrow width scaling |
clearance_mode |
logical if |
color_scaling |
can be 'iiv', 'rse', 'none' or 'pbpk' |
color_cutoff |
numeric vector of length 2 setting the cutoff limits in color coding for RSE (%) or IIV (%) |
labels |
logical if |
parse_labels |
logical if |
alpha |
transparency factor |
arrow_color_manual |
manually set color for each arrow |
unscaled_color |
color of the unscaled compartments |
font |
font name of arrow labels |
arrow_fontsize |
font size expansion factor |
The default scaling_fun
argument is set to scale the arrow width proportionally to the
square root of the parameter value, to match the method used on volumes.
A data.frame
define_comp_layout
, import_qmd_info
, qmd
## Not run:
qmd_info <- import_qmd_info(dir = '../models/pk/', runno = '001')
arrow <- define_arrow_layout(qmd_info)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.