Creates a ggplot2 plot with predictions and observations, split by subject
Source:R/luna_ind.R
luna_ind.Rd
Creates a ggplot2 plot with predictions and observations, split by subject
Usage
luna_ind(
id,
folder = NULL,
theme = ggplot2::theme_classic,
smooth_method = "loess",
ltbs = FALSE,
ncol = 3,
nrow = 3,
page = 1,
scales = NULL,
verbose = TRUE
)
Arguments
- id
run id, e.g.
run1
. This will be the folder in which the NONMEM model is run.- folder
path to folder containing the model file. Default is current directory.
- smooth_method
ggplot2-supported smooth method, e.g. "loess"
- ltbs
log-transform-both-sides error model? If
TRUE
, will exponentiate DV, PRED, and IPRED.- ncol
number of faceting columns to show
- nrow
number of faceting rows to show
- page
page number of plots to show
- scales
passed to
facet_wrap()
function as thescales
argument, can be "free", "free_x", or "free_y".