sankey-app - Shiny Contest Submission

sankey-app

Authors: George Efstathiadis

Abstract: Shiny App to visualise treatment patterns in clinical trials using sankey graphs. Demo data can be found in github repo.

Full Description:

Sankey App

Introduction

This app was developed to visualise treatment patterns in clinical trials. Later it was developed further to now host any kind of data that contain flow patterns that
can be visualised with Sankey Diagrams.

For demo purposes feel free to use the dummy data provided here.

Instructions:

Data(csv, excel or sas7bdat) need to be in the following format:

Required Columns

  • USUBJID: Unique subject id for each person.
  • NODE_S: Name of the starting node for the path.
  • NODE_E: Name of the ending node for the path.
  • PATHNO: Number of the path (starting from 1).

Each row is a unique combination of the USUBJID and PATHNO, meaning that it contains information for the link containing a person at a specific path.
Thus, the data should include for each unique id where did it start and where it ended at each timepoint (path no.).

Optional Columns

  • PATHNAME: An encoding for the names of each path (e.g. for PATHNO 1, PATHNAME is DAY1 - DAY2). Preferable format is of "{start_timepoint} - {end_timepoint}" for aditional functionality. Make sure PATHNAME is correctly mapped to PATHNO.
  • FILTERS: Any kind of filters to be displayed in the dashboard.

Final Dataset Format example and Sankey output:


Keywords: patterns, clinical_trials, healthcare, sankey, networkd3
Shiny app: https://gefstathiadis.shinyapps.io/sankey-app/
Repo: GitHub - GeorgeEfstathiadis/sankey-app: Shiny App to visualise treatment patterns in clinical trials using sankey graphs.
RStudio Cloud: Posit Cloud

Thumbnail:
image

Full image: