pkgdown/extra.css Skip to contents

[Experimental]

This function plots the number of TCRs paired by each algorithm. It can also plot the number of single-chains (alpha or beta) paired by the algorithms.

Usage

plot_paired(
  data,
  chain = c("paired", "alpha", "beta"),
  samples = NULL,
  by_method = TRUE,
  color_scheme = NULL
)

Arguments

data

a TIRTLseqDataSet object or a data frame created using get_pair_stats()

chain

the TCR chain to plot (default is "paired")

samples

(optional) the samples to include in the plot (default is all)

by_method

(optional) whether to bars by method (T-SHELL vs. MAD-HYPE)

color_scheme

(optional) the color scheme for the plot

Value

a ggplot object with a stacked bar chart of the number of pairs called for each sample by each algorithm.

Examples

load_example_data(dataset = "SJTRC_longitudinal")
#> Example data already loaded into object: 'SJTRC_longitudinal'

plot_paired(SJTRC_longitudinal)