View source: R/VDJ_clonal_barplot.R
VDJ_clonal_barplot | R Documentation |
Function to create stacked barplots to visualize clonal expansion per repertoire directly from a VDJ matrix (either from the minimal_VDJ() or VDJ_GEX_matrix()).
VDJ_clonal_barplot(
VDJ,
counts.to.use,
group.by,
expanded.colors,
non.expanded.color
)
VDJ |
VDJ matrix (either from the minimal_VDJ() or VDJ_GEX_matrix() |
counts.to.use |
The column name in the VDJ matrix of the clonotypes you want to use. Defaults to "clonotype_id". |
group.by |
The column name in the VDJ matrix on which you want to seperate the repertoire plots. If the entire VDJ matrix is one repertoire, this argument should be "none" or empty. |
expanded.colors |
Character vector. Colors to use for expanded clones. Should be more than 3 for better visibility. Defaults to a "darkorchid3"-based palette. |
non.expanded.color |
Character. Color to use for non expanded clones. Defaults to "black" |
Returns a list with a ggplot for each group.by element.
out <- VDJ_clonal_barplot(Platypus::small_vgm[[1]],
counts.to.use = "clonotype_id_10x",group.by = "sample_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.