plotProportionOfPatientsCovered {DrugUtilisation} | R Documentation |
Plot proportion of patients covered
Description
Plot proportion of patients covered
Usage
plotProportionOfPatientsCovered(
result,
facet = "cohort_name",
colour = strataColumns(result),
ribbon = TRUE
)
Arguments
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. |
Value
Plot of proportion Of patients covered over time
Examples
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)
CDMConnector::cdmDisconnect(cdm = cdm)
[Package DrugUtilisation version 0.8.0 Index]