plotFollowUpDistribution | R Documentation |
Plot the distribution of follow-up time
plotFollowUpDistribution(
population,
targetLabel = "Target",
comparatorLabel = "Comparator",
yScale = "percent",
logYScale = FALSE,
dataCutoff = 0.95,
title = NULL,
fileName = NULL
)
population |
A data frame describing the study population as created using the
|
targetLabel |
A label to us for the target cohort. |
comparatorLabel |
A label to us for the comparator cohort. |
yScale |
Should be either 'percent' or 'count'. |
logYScale |
Should the Y axis be on the log scale? |
dataCutoff |
Fraction of the data (number censored) after which the graph will not be shown. |
title |
The main title of the plot. |
fileName |
Name of the file where the plot should be saved, for example 'plot.png'.
See the function |
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.
A ggplot object. Use the ggsave
function to save to file in a different
format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.