Description Usage Arguments Details
View source: R/gg_conc_time_ind.R
Function requires model predictions. For plots without predictions use gg_conc_time() and add facets
1 2 | gg_conc_time_ind(df, obs = DV, pred = PRED, ipred = IPRED, x = TAPD,
id = ID, occ = NULL, facet_rows = 3, facet_scales = "free", ...)
|
df |
dataframe |
obs |
observed data column, Default: DV |
pred |
population predictions, Default: PRED |
ipred |
individual predictions, Default: IPRED |
x |
x variable, Default: TAPD |
id |
id variable, Default: ID |
occ |
occasion. If not NULL used as grouping variable (see details), Default: NULL |
facet_rows |
rows used in facet_wrap, Default: 3 |
facet_scales |
scales used facet_wrap, Default: "free" |
If occ is provided, id and occ are combined using paste to create a new grouping variable for each occasion. Lines only connect data from each unique color+occ group. Useful for time after dose graphics. Population predictions: dashed lines and triangles, Individal predictions: lines and crosses, Observed data: open circles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.