plotIncidencePopulation | R Documentation |
Bar plot of denominator counts, outcome counts, and person-time from incidence results
plotIncidencePopulation(
result,
x = "incidence_start_date",
y = "denominator_count",
facet = NULL,
colour = NULL
)
result |
Incidence results |
x |
Variable to plot on x axis |
y |
Variable to plot on y axis. |
facet |
Variables to use for facets. To see available variables for
facetting use the functions |
colour |
Variables to use for colours. To see available variables for
colouring use the function |
A ggplot object
cdm <- mockIncidencePrevalence(sampleSize = 1000)
cdm <- generateDenominatorCohortSet(
cdm = cdm, name = "denominator",
cohortDateRange = c(as.Date("2014-01-01"), as.Date("2018-01-01"))
)
inc <- estimateIncidence(
cdm = cdm,
denominatorTable = "denominator",
outcomeTable = "outcome"
)
plotIncidencePopulation(inc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.