pkgdown/extra.css

Skip to contents

[Experimental] plot_ranks() returns a line plot of TCR rank vs. read fraction for a given sample.

Usage

plot_ranks(
  data,
  chain = c("beta", "alpha"),
  column = "readFraction",
  color_scheme = NULL
)

rank_plot(...)

Arguments

data

a TIRTLseqDataSet object

chain

the chain to plot, "alpha" or "beta" (default is "beta")

column

the variable to plot (default is "readFraction")

color_scheme

(optional) the color scheme for the plot

Value

a ggplot object with the rank plot

Examples

folder = system.file("extdata/SJTRC_TIRTL_seq_longitudinal", package = "TIRTLtools")
ts_data = load_tirtlseq(folder, meta_columns = c("marker", "timepoint", "version"), sep = "_", verbose = FALSE)

plot_ranks(ts_data, chain = "beta")