Skip to contents

plot_clonotype_indices() creates a stacked bar chart containing the fraction of reads for the top 10 most frequent clonotypes, the 11th to 100th most frequent clonotypes, the 101st to 1000th most frequent, and so on, for each sample in the dataset.

Usage

plot_clonotype_indices(
  data,
  chain = c("beta", "alpha"),
  cutoffs = 10^(1:5),
  group_col = NULL,
  label_col = "Sample",
  flip = FALSE,
  return_data = FALSE,
  color_scheme = NULL
)

Arguments

data

a dataset created by load_tirtlseq() and possibly filter_dataset()

chain

< fill in later >

cutoffs

the indices used for the end of each group in the bar chart. The default is 10^(1:5), i.e. the 10th most-frequent clone, the 100th most-frequent clone, the 1,000th, the 10,000th, and the 100,000th.

group_col

(optional) if supplied, a column of the metadata that will be used to group samples

label_col

(optional) labels for the samples

flip

(optional) if TRUE, flip the x and y-axes (default is FALSE)

return_data

(optional) if TRUE, return the data used to make the plot (default is FALSE)

type_column

< fill in later >

proportion_column

< fill in later >

Value

A list with two objects:

$plot - a stacked bar chart of relative frequencies of most-frequent clonotypes

$data - if return_data is TRUE, the data frame used to create the plot

Details

Fill in later.

Examples

# example code