Last chance! 50% off unlimited learning
Sale ends in
Plot a histogram or a grid of histograms of V- / J-usage.
vis.gene.usage(.data, .genes = NA, .main = "Gene usage", .ncol = 3,
.coord.flip = F, .dodge = F, .labs = c("Gene", "Frequency"), ...)
Mitcr data frame or a list with mitcr data frames.
Gene alphabet passed to geneUsage.
Main title of the plot.
Number of columns in a grid of histograms if .data
is a list and .dodge
is F.
if T then flip coordinates.
If .data
is a list, than if this is T plot V-usage for all data frames to the one histogram.
Character vector of length 2 with names for x-axis and y-axis.
Parameter passed to geneUsage
. By default the function compute V-usage or J-usage for beta chains
w/o using read counts and w/ "Other" segments.
ggplot object.
# NOT RUN {
# Load your data.
load('immdata.rda')
# Compute V-usage statistics.
imm1.vs <- geneUsage(immdata[[1]], HUMAN_TRBV)
vis.V.usage(immdata, HUMAN_TRBV, .main = 'Immdata V-usage [1]', .dodge = T)
# Plot a histogram for one data frame using all gene segment data from V.gene column.
vis.V.usage(imm1.vs, NA, .main = 'Immdata V-usage [1]')
# Plot a grid of histograms - one histogram for V-usage for each data frame in .data.
vis.V.usage(immdata, HUMAN_TRBV, .main = 'Immdata V-usage', .dodge = F, .other = F)
# }
Run the code above in your browser using DataLab