Streamlining Scientific Visualization: A Flexible Approach to Treatment Sequence Diagrams
Case Study
by
Do you have any questions?

This article is part of a series that explores the technologies that keep your Framer site fast and operational.

Contact us

Developing the ability to generate Sankey plots in both HTML and PDF format

Motivation

Sankey diagrams of treatment sequences allow key decision-makers to easily understand the patient journey, so that they are better enabled to improve treatment effectiveness and access for patients across various disease stages. Producing and understanding these diagrams, however, can be challenging. Interactive Sankey diagrams look polished on a web page, and enable a better exploration experience, but hamper analytic partners who prefer, or are constrained to, collaborating using Microsoft Word documents, Google Docs, or PDFs. Generating versions of the same figure in multiple formats can be costly to build and maintain long-term, and fiddling with the low-level mechanics of each plot can take valuable researcher time away from the science behind it.

Solution

Extending further, interaction isn’t only a hurdle for Sankey diagrams, but rather for a diverse set of analytic graphs. Development of a context-aware plotting function would address a wide array of issues. To this end, Plinth applied its flexible data plotting methodology to develop a reusable, user-friendly R function. Among other fixes, this function creates a Sankey diagram from a treatment sequence table, automatically outputting the figure in the best format depending on the context. As a result, scientists can now use a single well developed function, to report results in multiple formats, streamlining insight generation and reducing maintenance costs in the long run through shared templates.

Impact

Plinth’s solution enables scientists to focus on the science of categorizing and interpreting treatment sequence data, while empowering them to communicate their insights through figures that are trustworthy, professional, and consistent.