Plot the count of events over calendar time.
plotEventToCalendarTime(
studyPopulation,
sccsModel = NULL,
title = NULL,
fileName = NULL
)
An object created using the createStudyPopulation()
function.
Optional: A fitted SCCS model as created using fitSccsModel()
. If the
model contains splines for seasonality and or calendar time a panel will
be added with outcome counts adjusted for these splines.
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.