createSunburstPlot: Function to create sunburst plot from CSV file.

createSunburstPlotR Documentation

Function to create sunburst plot from CSV file.

Description

Function to create sunburst plot from CSV file.

Usage

createSunburstPlot(
  data,
  outcomes = NULL,
  folder = NULL,
  file_name = NULL,
  shiny = FALSE,
  title = ""
)

Arguments

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.


mi-erasmusmc/TreatmentPatterns documentation built on July 1, 2023, 9:20 p.m.