plotProportionOfPatientsCovered | R Documentation |
Plot proportion of patients covered
plotProportionOfPatientsCovered(
result,
facet = "cohort_name",
colour = strataColumns(result),
ribbon = TRUE
)
result |
A summarised_result object. |
facet |
Columns to facet by. See options with
|
colour |
Columns to color by. See options with
|
ribbon |
Whether to plot a ribbon with the confidence intervals. |
Plot of proportion Of patients covered over time
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm <- generateDrugUtilisationCohortSet(cdm = cdm,
name = "my_cohort",
conceptSet = list(drug_of_interest = c(1503297, 1503327)))
result <- cdm$my_cohort |>
summariseProportionOfPatientsCovered(followUpDays = 365)
plotProportionOfPatientsCovered(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.