Plots and tables of any dataset, on the fly: filter, subset and mutate a dataset or a NONMEM / simulation / NCA output table (R syntax), then draw ggplot2-style plots (point, line, smooth, boxplot, violin, bar, histogram, density, ecdf, qq, errorbar, tile, text; colour, fill, shape, size and line type by a column; facet_grid and facet_wrap; scales, themes, size/dpi/format) and make tables (listing, summary statistics, baseline characteristics, counts and percentages, pivot, correlation) saved as CSV, Markdown and HTML. Everything can be given on the command line or in a settings file: -c nlmx.custom (--print-config; --list-plots lists geoms, table kinds, themes and statistics). See docs/CUSTOM.md Usage: nlmx custom [OPTIONS] [DATASET] Arguments: [DATASET] Dataset (.csv, a NONMEM table or other delimited text with a header); same as --data Options: -h, --help Print help Method: --threads Worker threads for subject- and replicate-level parallelism (default: all cores). Results do not depend on this value Core: -c, --config Settings file of the command (TOML syntax), with the command's extension: .covar (cov, posterior, inspect, validate, fit), .qcd, .qcn, .eda, .nca, .init, .screen, .vpc, .forest, .sims, .er, .power, .gen, .ask -o, --output Output directory --run-dir Existing run directory, for `resume` --overwrite Allow writing into a non-empty output directory --dry-run Run the validation pipeline instead of the full analysis --no-checkpoint Do not write replicate checkpoints (posterior engine) Shared numerics: --seed Master seed (uncertainty draws, resampling, posterior draws, vpc simulations, autoinit ML) Logging and output: --suppress-console <0|1> 0 (default) prints progress to the terminal; 1 silences it (the log is still written) --log-file Write the transcript here instead of log_.txt --no-color Disable ANSI colour --license Print the license (CC BY-ND 4.0), the third-party components, how long this version may be used and how to contact the author, and stop -v, --verbose... Increase verbosity (repeatable: info -> debug -> trace) -q, --quiet Errors only on the terminal (the log file is unaffected) --keep-subject-ids Do not hash subject identifiers in outputs --format Output format for `schema`: txt | toml | json | json-schema [default: txt] VPC: --filter R-style condition on data columns. vpc: keep the subjects matching it (at each subject's first record), e.g. "STU > 3001" or "GROUP == 1 & WT < 70 | HT > 154". autoinit, screen: keep the rows matching it (as NONMEM IGNORE/ACCEPT, doses and observations), with text values in quotes, e.g. 'C != "XYZ"' or 'SITE %in% c("A","B")'; an empty cell is "" er: keep the rows matching it --legend-position vpc, fit, autoinit, screen: legend position on the charts: bottom (default) | top --x-title vpc: x-axis title (default: the --idv name) --y-title vpc: y-axis title of the VPC (default: DV, or prediction-corrected DV) --no-plots vpc: tables only; no HTML report or report SVG files --no-svg vpc, fit, autoinit, screen: write no SVG files at all (neither svg/ nor plots/svg/); PNG plots and the HTML report are unaffected --print-config write the command's annotated settings template to FILE (with the command's extension, e.g. nlmx.eda, nlmx.vpc) and exit Dataset (autoinit, screen): --mutate eda, er, nca: change or create dataset columns before the analysis, R-syntax assignments separated by `;`, e.g. "DV = DV * 4; LNDV = log(DV); HIGH = DOSE == 100" (true is 1, false 0); runs before the filters ([data] mutate) --group autoinit, screen: grouping columns, comma separated, for subjects sharing a dosing regimen (or study, formulation, route), e.g. REGIMEN or STUDY,FORM. One set of estimates is made from all subjects, each with its own doses; the groups give the route per group, a regimen summary and a check that their clearances agree er: dose-group (arm) column, used with --placebo Plots (vpc, fit, autoinit, screen, nca): --x-scale vpc, fit, autoinit: x axis of the plots: linear (default) | log (semi-log; values ≤ 0 are not drawn) --y-scale vpc, fit, autoinit: y axis of the plots: linear (default) | log (semi-log; fit: the DV plots only) --plot-width plots: figure width in --plot-units (default 7 in) --plot-height plots: figure height in --plot-units (default 5 in) --plot-units plots: units of width and height: in (default) | cm | mm | px --plot-dpi plots: resolution in dots per inch (default 300) --plot-base-size plots: base font size in points (default 11, as ggplot2) --plot-format plots: png (default) | svg | both --plot-no-title plots: no chart title (for a figure caption) --plot-no-legend plots: no legend Custom: --skip custom: ignore the first N lines of the dataset before reading it (a title or run line above the column names, as in some NONMEM tables); 0 by default --header custom: true (the default) takes the first line left (after --skip) as the column names; false reads every line as data and names the columns A, B, C, ... Z, AA, AB, ... [possible values: true, false] --no-header custom: same as --header false: the dataset has no column names, so the columns are A, B, C, ... --geom custom: the layers of the plot, comma separated: point, jitter, line, path, step, smooth, boxplot, violin, bar, col, histogram, density, area, ecdf, qq, errorbar, pointrange, tile, text (--list-plots describes them), e.g. point,smooth --x custom: x aesthetic: a column, or an R expression such as log(CONC); factor(COL) makes it discrete --y custom: y aesthetic: a column or an R expression --color custom: colour by a column (discrete or gradient), or a fixed colour (name or #RRGGBB) --fill custom: fill by a column or a fixed colour --shape custom: point shape by a column, or a fixed shape (circle, square, triangle, diamond, plus, cross) --size custom: point size or line width by a column, or a fixed number --linetype custom: line type by a column, or a fixed one (solid, dashed, dotted, dotdash, longdash) --label custom: text of the text geom --plot-name custom: file name of the plot (default plot) --title custom: plot title; report: title of the document --subtitle custom: plot subtitle; report: subtitle of the document --caption custom: plot caption (bottom right) --plot-alpha <0-1> custom: opacity of points, areas and bands (default depends on the geom) --line-width custom: line width (default 1) --facet-rows custom: facet_grid rows: one or more columns, comma separated --facet-cols custom: facet_grid columns --facet custom: facet_wrap by one or more columns --facet-ncol custom: number of panel columns of facet_wrap --facet-nrow custom: number of panel rows of facet_wrap --facet-scales custom: fixed (default) | free | free_x | free_y --facet-labels custom: strip text: value (default) | both (COLUMN: value) --legend-title custom: legend title --xlim custom: x axis limits, e.g. 0,100 (an empty end is open: ,100) --ylim custom: y axis limits --x-angle custom: angle of the x axis labels (default: 45 when category labels would overlap) --hline custom: horizontal reference lines at these y values --vline custom: vertical reference lines at these x values --abline custom: reference line y = A + B*x --smooth-method custom: smooth geom: loess (default) | lm --span <0-1> custom: loess span (default 0.75) --smooth-level <0-1> custom: confidence level of the smooth band (default 0.95) --nbins custom: number of histogram bins (default 30) --binwidth custom: histogram bin width (overrides --nbins) --y-stat custom: what a histogram / bar / density shows: count (default) | density | percent --position custom: bars and histograms of groups: stack (default) | dodge | fill | identity --summary-fun custom: bar / errorbar / pointrange summary of y: mean (default), median, sum, min, max, n, sd, geomean, q1, q3 --summary-error custom: error bars: sd | se | ci95 | iqr | range | none --jitter custom: width of the jitter geom as a fraction of the spacing (default 0.4) --theme custom: classic (default) | bw | minimal | gray --palette custom: colour palette name (okabe-ito, tableau, viridis, ...), a colour list, or LEVEL=COLOUR pairs --select custom: keep these columns, in this order (after the other data steps) --sort custom: sort the rows by these columns (prefix - for descending) --distinct custom: keep the first row of every combination of these columns --head custom: keep the first N rows --table-kind custom: make a table: listing | summary | demographics (table1) | frequency | pivot | correlation (--list-plots describes them) --table-name custom: file name of the table (default table) --table-title custom: table title --table-footnote custom: table footnote --table-by custom: group the table by these columns (summary, demographics) --table-stats custom: statistics, comma separated: n, nmiss, mean, sd, se, cv, geomean, geocv, median, min, max, sum, q1, q3, iqr, lcl95, ucl95, pNN, mean_sd, mean_se, mean_ci, median_range, median_iqr, geomean_cv, range --table-rows custom: rows of a frequency / pivot table --table-columns custom: columns of a frequency / pivot table --table-value custom: the column a pivot table summarises --table-fun custom: the statistic of a pivot table (default mean) --table-percent custom: percentages of a frequency table: none (default) | row | column | total --table-digits custom: significant digits of this table (default --digits, else 3) --table-categorical custom: categorical variables of a demographics table --table-continuous custom: continuous variables of a demographics table --table-max-levels custom: a numeric variable with at most N different values is categorical in a demographics table (default 5) --table-method custom: correlation method: pearson (default) | spearman --flip custom: swap the axes (coord_flip) --equal-axes custom: the same range on both axes (coord_equal-like), e.g. for observed against predicted --identity custom: draw the line of identity y = x --no-smooth-se custom: no confidence band around the smooth --svg custom: also write the plots as SVG (plots/svg/) --no-csv custom: do not write the tables as CSV --no-markdown custom: do not write the tables as Markdown --no-html custom: do not write the tables as HTML; report: no HTML document (the default) --border-color custom: outline colour of bars, boxes, violins, histograms, areas and tiles (a name or #RRGGBB; none = no outline); default: the colour aesthetic, else dark grey --border-width custom: outline width of bars, boxes, violins, histograms, areas and tiles, relative to the default (1); 0 = no outline --stroke-color custom: outline colour of the points (a ring around a filled marker); default none --stroke-width custom: outline width of the points (default 0.6 when --stroke-color is given) --color-title custom: title of the legend of the colour aesthetic (--legend-title sets all legends) --fill-title custom: title of the legend of the fill aesthetic --shape-title custom: title of the legend of the shape aesthetic --size-title custom: title of the legend of the size aesthetic --linetype-title custom: title of the legend of the line type aesthetic --ref-color custom: colour of the reference lines (--hline, --vline, --abline, --identity); default dark grey --ref-linetype custom: line type of the reference lines: solid, dashed (default), dotted, dotdash, longdash --ref-width custom: width of the reference lines relative to the default (1) --title-size custom: font size of the plot title in points (default 1.2 x the base size) --axis-title-size custom: font size of the axis titles in points (default the base size) --axis-text-size custom: font size of the tick labels in points (default 0.85 x the base size) --legend-text-size custom: font size of the legend labels in points (default 0.85 x the base size) --strip-text-size custom: font size of the facet labels in points (default 0.85 x the base size) --title-align custom: left (default) | center | right: where the title and subtitle sit --plot-background custom: colour of the figure background (default white) --panel-background custom: colour of the panels (default depends on --theme) --grid-color custom: colour of the grid lines (none removes them; default depends on --theme) --x-breaks custom: tick positions of a numeric x axis, e.g. 0,12,24,48 (default: chosen from the data) --y-breaks custom: tick positions of a numeric y axis --bar-width <0-1> custom: width of bars, boxes, violins and tiles as a fraction of the space of a category (default 0.8 for bars, 0.75 for boxes, 0.9 for violins) --band-alpha <0-1> custom: opacity of the confidence band of the smooth (default 0.2) --text-size custom: font size of the labels of the text geom in points (default the base size) --na-color custom: colour of the rows whose colour or fill value is missing (default grey) --table-rename custom: rename column headings and cell texts of the table: OLD=NEW pairs, comma separated (use the settings file for texts with commas), e.g. WT=Weight (kg),M=Male --table-hide custom: leave these columns out of the table (by their heading, after --table-rename) --table-na-text custom: text for a missing value in the table (default NA) --table-decimals custom: show the numbers of the table with N decimals instead of --table-digits significant digits --table-percent-digits custom: decimals of the percentages in frequency and demographics tables (default 1) --no-outliers custom: boxplots without the points beyond the whiskers --table-transpose custom: swap the rows and columns of the table --no-settings-file custom: do not write custom_settings.custom (the settings file that reproduces this run) --no-tables custom: plots only, write no tables --table-total custom: add the total / overall row and column --no-table-total custom: leave out the total / overall row and column QC: --delimiter qc-data: field delimiter of the dataset: auto (default) | comma | tab | space | semicolon EDA: --list-plots eda: print every standard plot and table (ID, name, category) and exit Sims: simulation: --table-vars sims: model variables written next to the simulated values, e.g. CL,V,KA (default: the items of $TABLE). custom: the columns a summary / demographics / correlation table describes Sims: metrics and summary: --digits sims: significant digits of the summary tables (default 4) This lists the options of `nlmx custom` only (376 options of other commands are not shown). `nlmx --help` lists every option of every command.