powered by
Create plots for time profile data such as PK and PD plots.
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 )
A ggplot object.
<dfr> A data frame.
<dfr>
<var> Variables for x- and y-axis as unquoted names
<var>
<var> Variable for grouping ID such as subject ID as unquoted name.
Arguments to pass to ggplot2::aes for additional mapping.
<lgl> TRUE to show number of subjects as per id in caption.
<lgl>
TRUE
id
<lgl> TRUE to log x- and y-axis.
<num> Alpha value for ggplot2::geom_point.
<num>
<num> Alpha value for ggplot2::geom_line.
<chr> Labels for x- and y-axis.
<chr>
<chr> Title. Subtitle. Caption.
Theoph |> ggtpp(x=Time,y=conc,id=Subject)
Run the code above in your browser using DataLab