createSunburstPlot | R Documentation |
Function to create sunburst plot from CSV file.
createSunburstPlot(
data,
outcomes = NULL,
folder = NULL,
file_name = NULL,
shiny = FALSE,
title = ""
)
data |
A data frame containing two columns: 1) column "path" should specify the event cohorts separated by dashes - (combinations can be indicated using &) and 2) column "freq" should specify how often that (unique) path occurs. |
outcomes |
Character vector containing all event cohorts. |
folder |
Root folder to store the results. |
file_name |
File name for the results. |
shiny |
Set to TRUE if HTML file is generated for shiny application, FALSE will generate a standalone HTML with title and legend. |
title |
Optional if shiny = FALSE: add descriptive title in sunburst plot for standalone HTML. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.