Visualise interaction between 2 variables with parallel sets diagrams
I-Hsuan Lin
University of Manchester
March 07, 2022
Introduction
This notebook shows readers how to use ggforce package to create parallel sets diagram to show the interaction between 2 categorical variables.
About demo datasets
All the datasets are available from CRAN or bioconductor.
- The
Titanicdataset (from R) provides information on the fate of passengers on the ocean liner ‘Titanic’. - The fission dataset provides a
RangedSummarizedExperimentobject of read counts in genes for a time course RNA-Seq experiment of fission yeast (Schizosaccharomyces pombe) in response to oxidative stress at 0, 15, 30, 60, 120 and 180 mins. - The TENxPBMCData single-cell RNA-seq data for on PBMC cells, generated by 10X Genomics.