Welcome to the Spaghetti Plot App

Summary:

This web application allows you to graph a spaghetti plot to visualize the change of a variable (e.g. tumor volume) across time for individuals in a dataset. A spaghetti plot is a graphical display where the x-axis is time and the y-axis in the variable of interest and a line is plotted for each individual or patient. These graphs are commonly used to illustrate changes in tumor volume in cancer clinical trials. The user uploads a dataset according to the specifications provided, and a spaghetti plot will be created automatically.

Detail and Uses:

The plots and summary statistics provided in this app can be downloaded and used for publications, presentations, or simply for internal reference. This app will take your formatted data and automatically create high quality graphs. The user has the ability to color the lines and label patients based on desired characteristics. There are other stylistic choices including axis and plot titles, color scheme, display of patient ID, reference lines, and download quality.

Disclaimer:

We do not take responsibility for any misuse or misinterpretation of this application or the results produced.

References

Jonathan McPherson, Alan Dipert and Barbara Borges (2021). shiny: Web Application Framework for R. R package version 1.7.1. https://CRAN.R-project.org/package=shiny

Winston Chang (2021). shinythemes: Themes for Shiny. R package version 1.2.0. https://CRAN.R-project.org/package=shinythemes

Carson Sievert and Joe Cheng (2021). bslib: Custom "Bootstrap" "Sass" Themes for "shiny" and "rmarkdown". R package version 0.3.1.https://CRAN.R-project.org/package=bslib

Wickham et al., (2019). Welcome to the tidyverse. Journal of Open Source Software, 4(43), 1686, https://doi.org/10.21105/joss.01686

C. Sievert. Interactive Web-Based Data Visualization with R, plotly, and shiny. Chapman and Hall/CRC Florida, 2020.

Ramnath Vaidyanathan, Yihui Xie, JJ Allaire, Joe Cheng, Carson Sievert and Kenton Russell (2021). htmlwidgets: HTML Widgets for R. R package version 1.5.4.https://CRAN.R-project.org/package=htmlwidgets

Winston Chang (2022). webshot: Take Screenshots of Web Pages. R package version 0.5.3. https://CRAN.R-project.org/package=webshot

Wickham H, Bryan J (2022). _readxl: Read Excel Files_. R package version 1.4.1, <https://CRAN.R-project.org/package=readxl>.

R Core Team (2022). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.


Developed by
Gonghao Liu

Accepted format for upload data include csv, xlsx, and xls.


Description of Columns
ID Variable:

This variable is the ID of each participant patient, which will be used as a unique identifier.

Outcome Variable:

This variable is the variable you want to plot, and it must be a numeric variable

Time Variable:

This variable is the time of each visit, which can be measured by day, month, and year.

Group Variable:

This variable is a group identifier (the color of the plot).

Indicator Variable:

This variable is the variable to annotate particular patients, and it must be binary.


Below is a sample data set that satisfies the above criteria. This data can be downloaded and used as a sample for visualization.