ggSunburst {TreatmentPatterns} | R Documentation |
ggSunburst
Description
ggSunburst
Usage
ggSunburst(treatmentPathways, groupCombinations = FALSE, unit = "percent")
Arguments
treatmentPathways |
( |
groupCombinations |
(
|
unit |
( |
Value
(gg
, ggplot
)
Examples
# Dummy data, typically read from treatmentPathways.csv
treatmentPatwhays <- data.frame(
pathway = c("Acetaminophen", "Acetaminophen-Amoxicillin+Clavulanate",
"Acetaminophen-Aspirin", "Amoxicillin+Clavulanate", "Aspirin"),
freq = c(206, 6, 14, 48, 221),
sex = rep("all", 5),
age = rep("all", 5),
index_year = rep("all", 5)
)
ggSunburst(treatmentPatwhays)
[Package TreatmentPatterns version 3.1.0 Index]