createSankeyDiagram2 {TreatmentPatterns} | R Documentation |
createSankeyDiagram2
Description
DEPRECATED Create sankey diagram.
Usage
createSankeyDiagram2(
treatmentPathways,
groupCombinations = FALSE,
colors = NULL,
...
)
Arguments
treatmentPathways |
( |
groupCombinations |
(
|
colors |
( |
... |
Paramaters for sankeyNetwork. |
Value
(htmlwidget
)
Examples
# Dummy data, typically read from treatmentPathways.csv
treatmentPathways <- data.frame(
path = 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)
)
createSankeyDiagram(treatmentPathways)
[Package TreatmentPatterns version 2.6.7 Index]