Open mvankessel-EMC opened 9 months ago
tempFile <- tempfile(fileext = ".html")
dummyData <- data.frame(
path = c("A+Z", "B", "C", "A-B", "B-C", "D+Z", "E", "F", "D-E", "D-E-F"),
freq = c(25, 25, 25, 12, 13, 25, 25, 25, 12, 13),
sex = rep("all", 10),
age = rep("all", 10),
index_year = c(rep("all", 5), rep("2020", 5))
)
s <- TreatmentPatterns::createSunburstPlot(dummyData, groupCombinations = FALSE)
htmlwidgets::saveWidget(s, file = tempFile)
webshot2::webshot(url = file.path("file:///", tempFile), file = "./s.png", )
Add download button for sankey and sunburst in module