Plotting AE occurrences and dosing times for each individual

For each individual for which at least one AE has occurred (AE=1) a plot is done indicating the time of dose administrations and AE occurrence. This plot is for data diagnostics once the GDF with AEs has been generated and should give an idea if determination of different exposure metrics is reasonable (e.g. "is the dosing history known well enough?"). Subjects who did not experience AEs are not considered in the generated plot.

plotIndivAE_IQRdataGENERAL(
  data,
  filename = NULL,
  AENAMES = NULL,
  nrow = 4,
  shapesize = 3
)

Arguments

data

Data frame ideally in general dataset format. Required columns: "USUBJID","AE","NAME","EVID","TIME","TIMEUNIT".

filename

Name of the PDF file to export plots to. If not provided a list with ggplot elements is returned.

AENAMES

String or vector or strings naming the AEs in the dataset to consider (NAME column). If not provided all AEs are shown.

nrow

Number of individual subject plots per PDF page.

shapesize

Size of the shape in the plot.

Value

If filename provided a PDF is exported. Otherwise a list with ggplot objects is returned.

See also