R/Plots.R
plotCalendarTimeSpans.Rd
Plot the calendar time ranges spanned by each observation period.
plotCalendarTimeSpans(
studyPopulation,
maxPersons = 10000,
title = NULL,
fileName = NULL
)
An object created using the createStudyPopulation()
function.
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.
Optional: the main title for the plot
Name of the file where the plot should be saved, for example 'plot.png'.
See the function ggplot2::ggsave()
for supported file formats.
A ggplot object. Use the ggplot2::ggsave()
function to save to file in a different
format.
Plots a line per patient from their observation start to their observation end.