Description Usage Arguments Details Value Examples
pkaeplot
creates a plot showing duration of adverse events in each subjects
overlayed on individual concentration-time curve
1 2 3 4 |
pk |
dataset containing individual pharmacokinetic profiles |
ae |
dataset containing adverse event profiles |
ae.data.first.day |
assign 1 if the first study day is recorded as DAY=1 in AE dataset and DAY=0 in PK dataset |
scale.y.log10 |
logical value controlling Y axis scale |
x.range |
range of X axis to display |
y.range |
range of Y axis to display for active arm |
ae.col.var |
variable to set colors of AE (e.g. AE grade, AE type) |
ae.col.name |
name appearing in legend for different colors of AE curves |
pk.col.var |
variable to set colors of background PK curves (e.g. DOSE) |
ae.palette |
color palette for AE scales |
ggtheme |
specify ggplot theme (set NULL to use current theme) |
The function returns a list of ggplot objects, including (1) plot for active arm, (2) plot for placebo arm, and (3) legend.
list of ggplot objects
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.