qmd | R Documentation |
Create and renders Quantitative Model Diagrams (QMD) for NONMEM models
qmd(qmd_info = NULL, scaling = TRUE, comp_scale_fun = function(x) {
sqrt(x) }, arrow_scale_fun = function(x) { x }, labels = TRUE,
parse_labels = TRUE, font = "Avenir", comp_fontsize = 1,
arrow_fontsize = 1, filled = TRUE, alpha = 1, color_scaling = "RSE",
color_cutoff = c(25, 50), arrow_color_manual = NULL,
comp_color_manual = NULL, unscaled_color = NULL,
unscaled_shape = "circle", scaled_shape = "square", flipped = FALSE,
rank = NULL, title = NULL, clearance_mode = FALSE,
pbpk_layout = FALSE, vein_comp_label = "venous",
artery_comp_label = "arterial", save_qmd = FALSE, file_name = NULL,
format = "svg", width = NULL, height = NULL, graph_attrs = NULL)
qmd_info |
a |
scaling |
logical if |
comp_scale_fun |
a function to be used for compartment size scaling |
arrow_scale_fun |
a function to be used for arrow width scaling |
labels |
logical if |
parse_labels |
logical if |
font |
font name of the compartment label |
comp_fontsize |
font size expansion factor |
arrow_fontsize |
font size expansion factor |
filled |
logical if |
alpha |
transparency factor |
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 (%) |
arrow_color_manual |
manually set color for each arrow |
comp_color_manual |
manually set color for each compartment |
unscaled_color |
color of the unscaled compartments |
unscaled_shape |
shape of the unscaled compartments. Can be square, circle or diamond |
scaled_shape |
shape of the scaled compartments. Can be square, circle or diamond |
flipped |
logical if |
rank |
integer vertor assigning a rank to each compartment. Can be used to obtain a specific layout. The ranks must be greater or equal to 1. |
title |
A title to be added to the graph |
clearance_mode |
logical if |
pbpk_layout |
logical if |
vein_comp_label |
label of the veinous compartment |
artery_comp_label |
label of the arterial compartment |
save_qmd |
save the QMD graph into a file (default |
file_name |
name of the file to be created on the disk when save_qmd is |
format |
file format when save_qmd is |
width |
width of the resulting graphic in pixels |
height |
height of the resulting graphic in pixels |
graph_attrs |
an optional data.frame of graph attribute statements that can serve as defaults for the graph. |
import_qmd_info
, format_qmd_info
## Not run:
qmd(qmd_info, scaling = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.