Create plots for time profile data such as PK and PD plots.
Usage
ggtpp(
d,
x,
y,
id,
...,
nsub = TRUE,
logx = FALSE,
logy = FALSE,
alpha_point = 0.2,
alpha_line = 0.1,
xlab = NULL,
ylab = NULL,
ttl = NULL,
sttl = NULL,
cap = NULL
)Arguments
- d
<dfr>A data frame.- x, y
<var>Variables for x- and y-axis as unquoted names- id
<var>Variable for grouping ID such as subject ID as unquoted name.- ...
Arguments to pass to ggplot2::aes for additional mapping.
- nsub
<lgl>TRUEto show number of subjects as peridin caption.- logx, logy
<lgl>TRUEto log x- and y-axis.- alpha_point
<num>Alpha value for ggplot2::geom_point.- alpha_line
<num>Alpha value for ggplot2::geom_line.- xlab, ylab
<chr>Labels for x- and y-axis.- ttl, sttl, cap
<chr>Title. Subtitle. Caption.
