pkgdown/extra.css Skip to contents

[Experimental]

This function creates a point plot of read fraction vs. rank for the N most frequent alpha (left, mirrored) and beta (right) chains with lines between alpha and beta chains indicating a pair and a cross indicating an unpaired single-chain.

Usage

plot_pairs_with_eachother(
  data,
  sample,
  n_max = 100,
  show_num_partners = FALSE,
  color_scheme = NULL
)

Arguments

data

a TIRTLseqDataSet object

sample

the sample to plot (either by number or sample id)

n_max

the number of most frequent single-chains to plot

show_num_partners

whether to show the number of partners for each single-chain (default is FALSE)

color_scheme

(optional) the color scheme for the plot

Value

A ggplot object with the plot

Examples

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

plot_pairs_with_eachother(SJTRC_longitudinal, sample = 1, n_max = 100)


plot_pairs_with_eachother(SJTRC_longitudinal, sample = 1, n_max = 100, show_num_partners = TRUE)