Plot information centered around the start of exposure
plotExposureCentered(
studyPopulation,
sccsData,
exposureEraId = NULL,
highlightExposedEvents = TRUE,
title = NULL,
fileName = NULL
)
An object created using the createStudyPopulation()
function.
An object of type SccsData as created using the getDbSccsData function.
The exposure to create the era data for. If not specified it is assumed to be the one exposure for which the data was loaded from the database.
Highlight events that occurred during the exposure era using a different color?
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.
This plot shows the number of events and the number of subjects under observation in week-sized intervals relative to the start of the first exposure.