Plot the distribution of follow-up time

plotFollowUpDistribution(population, targetLabel = "Target",
comparatorLabel = "Comparator", yScale = "percent",
logYScale = FALSE, dataCutoff = 0.95, title = NULL,
fileName = NULL)

## Arguments

population A data frame describing the study population as created using the createStudyPopulation function. This should at least have these columns: treatment, timeAtRisk. 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 ggsave in the ggplot2 package for supported file formats.

## Value

A ggplot object. Use the ggsave function to save to file in a different format.

## Details

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.