Plot the distribution of follow-up time
plotFollowUpDistribution(population, targetLabel = "Target", comparatorLabel = "Comparator", yScale = "percent", logYScale = FALSE, dataCutoff = 0.95, title = NULL, fileName = NULL)
A data frame describing the study population as created using the
A label to us for the target cohort.
A label to us for the comparator cohort.
Should be either 'percent' or 'count'.
Should the Y axis be on the log scale?
Fraction of the data (number censored) after which the graph will not be shown.
The main title of the plot.
Name of the file where the plot should be saved, for example 'plot.png'.
See the function
A ggplot object. Use the
ggsave function to save to file in a different
Plot the distribution of follow-up time, stratified by treatment group.Follow-up time is defined as time-at-risk, so not censored at the outcome.