plotExposureCentered | R Documentation |
Plot information centered around the start of exposure
plotExposureCentered(
studyPopulation,
sccsData,
exposureEraId = NULL,
highlightExposedEvents = TRUE,
title = NULL,
fileName = NULL
)
studyPopulation |
An object created using the |
sccsData |
An object of type SccsData as created using the getDbSccsData function. |
exposureEraId |
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. |
highlightExposedEvents |
Highlight events that occurred during the exposure era using a different color? |
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 |
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.
A ggplot object. Use the ggplot2::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.