Observed data and how to show it, as the app's "Overlay Dataset" options:
for mvp_plot(), mvp_compare() and mvp_open_in_app().
Usage
mvp_observed(
data,
y = "DV",
cmt = NULL,
color = NULL,
median = FALSE,
median_by = NULL,
points = TRUE
)Arguments
- data
A NONMEM-style data frame (columns
ID,TIMEin model time units, andy), or the path of a.csvfile (read withmvp_data()).- y
Column to plot.
- cmt
Only show rows with these
CMTvalues (e.g. the plasma compartment), as the app's "Filter CMT".- color
Typical subject: colour the data by this column (e.g.
"DOSE").- median
Add the median of the data over time.
- median_by
Typical subject: one median line per value of this column (e.g.
"DOSE").- points
Show the data as points (default) as well as lines.