View source: R/createSunburstPlot.R
| createSunburstPlot | R Documentation | 
New sunburstPlot function
createSunburstPlot(treatmentPathways, groupCombinations = FALSE, ...)
treatmentPathways | 
 (  | 
groupCombinations | 
 ( 
  | 
... | 
 Paramaters for sunburst.  | 
(htmlwidget)
# 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)
)
createSunburstPlot(treatmentPatwhays)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.