plotCalendarTimeSpans {SelfControlledCaseSeries} | R Documentation |
Plot the calendar time ranges spanned by each observation period.
Description
Plot the calendar time ranges spanned by each observation period.
Usage
plotCalendarTimeSpans(
studyPopulation,
maxPersons = 10000,
title = NULL,
fileName = NULL
)
Arguments
studyPopulation |
An object created using the |
maxPersons |
The maximum number of persons to plot. If there are more than this number of persons a random sample will be taken to avoid visual clutter. |
title |
Optional: the main title for the plot |
fileName |
Name of the file where the plot should be saved, for example 'plot.png'.
See the function |
Details
Plots a line per patient from their observation start to their observation end.
Value
A ggplot object. Use the ggplot2::ggsave()
function to save to file in a different
format.
[Package SelfControlledCaseSeries version 6.0.1 Index]