Skip to contents

Plot Functions

Top-level functions returning a ggplot object.

plot_dvtime()
Plot a dependent variable versus time
plot_dvconc()
Plot a dependent variable versus concentration
plot_gof()
Plot population overlay goodness-of-fit (GOF) plots
plot_vpc_cont()
Plot a visual predictive check (VPC) for continuous data with exact time bins
plot_vpc_cens()
Plot a censoring (BLQ-proportion) VPC with exact time bins
plot_doseprop()
Plot a dose-proportionality assessment via power law (log-log) regression
plot_vpc_legend()
Plot a legend for a visual predictive check (VPC)

Plot Builders

Lower-level renderers that draw plots from precomputed stats objects.

plot_build_vpc()
Build a VPC ggplot from a vpc_stats object
plot_build_doseprop()
Build a dose-proportionality ggplot from a doseprop_stats object

Styling

Per-plot-family presets returning a ggstylekit::style_spec() for the style argument (customize by passing fields, e.g. style_dvtime(shapes = ...)), plus the ggstylekit verbs re-exported for adjusting a finished plot: restyle_plot(), reveal(), combine_styled_plots(), and legend_spec().

style_dvtime()
Concentration-time plot style (plot_dvtime)
style_dvconc()
Response versus concentration plot style (plot_dvconc)
style_gof()
Population overlay GOF plot style (plot_gof)
style_doseprop()
Dose-proportionality plot style (plot_doseprop)
style_vpc()
VPC plot style (plot_vpc_cont / plot_vpc_cens)
reexports restyle_plot reveal combine_styled_plots legend_spec
Objects exported from other packages

Layer Visibility

Constructors for the shown argument of plot functions.

plot_vpc_shown()
VPC layer visibility settings
plot_gof_shown()
GOF layer visibility settings

VPC Statistics

Compute observed and simulated quantile summaries for VPC plotting.

df_vpcstats()
Compute VPC summary statistics from raw simulation data

Dose-Proportionality Statistics

Power law (log-log) regression helpers.

df_doseprop()
Compute and tabulate estimates for log-log regression

Vectorized Helpers

Vectorized utilities intended for use inside dplyr::mutate().

var_addn()
Append counts of unique identifiers to group labels
var_dosenorm()
Internal Helper: Apply dose-normalization to a variable
var_predcorr()
Apply prediction correction

mrgsolve Wrappers

Convenience wrappers around mrgsolve model loading and simulation.

model_mread_load()
Load an mrgsolve model file from the internal model library
df_mrgsim_replicate()
Execute a visual predictive check (VPC) simulation using mrgsolve
df_mrgsim_addpred()
Add population predictions (PRED) to a data.frame

S3 Class System

Predicates, constructors, operators, and methods for the shared pmx_stats base class and its vpc_stats and doseprop_stats siblings, plus the pmx_vpc_plot ggplot subclass.

pmx_stats()
Construct a pmx_stats container
is_pmx_stats()
Test whether an object is a pmx_stats container
is_pmx_vpc_plot()
Test whether an object is a pmx_vpc_plot
is_vpc_stats()
Test whether an object is a vpc_stats container
is_doseprop_stats()
Test whether an object is a doseprop_stats container
`+`(<pmx_vpc_plot>)
Add a layer to a pmx_vpc_plot with a facet warning
print(<pmx_stats>)
Print method for pmx_stats
summary(<pmx_stats>)
Summary method for pmx_stats
as.data.frame(<pmx_stats>)
Coerce a pmx_stats object to a data.frame
print(<vpc_stats>)
Print method for vpc_stats
summary(<vpc_stats>)
Summary method for vpc_stats
print(<doseprop_stats>)
Print method for doseprop_stats
summary(<doseprop_stats>)
Summary method for doseprop_stats

Datasets

Internal example datasets used in vignettes and worked examples.

data_sad
Example NONMEM Analysis-Ready Dataset for PK/PD Modeling of a Single Ascending Dose Study
data_sad_nca
Example NCA Parameter Dataset Output from PKNCA
data_sad_pkfit
Example NONMEM Analysis-Ready Dataset for PK Modeling of a Single Ascending Dose Study