vis.count.len: Plot a histogram of lengths.

Description Usage Arguments Details Value Examples

Description

Plot a histogram of distribution of lengths of CDR3 nucleotide sequences. On y-axis are sum of read counts for each length.

Usage

1
vis.count.len(.data, .ncol = 3, .name = "", .col = "Read.count")

Arguments

.data

Data frame with columns 'CDR3.nucleotide.sequence' and 'Read.count' or list with such data frames.

.ncol

If .data is a list, than number of columns in a grid of histograms for each data frame in .data. Else not used.

.name

Title for this plot.

.col

Name of the column to use in computing the lengths distribution.

Details

If .data is a data frame, than one histogram will be plotted. Is .data is a list, than grid of histograms will be plotted.

Value

ggplot object.

Examples

1
2
3
4
5
6
7
8
## Not run: 
load('immdata.rda')
# Plot one histogram with main title.
vis.count.len(immdata[[1]], 'Main title here')
# Plot a grid of histograms with 2 columns.
vis.count.len(immdata, 2)

## End(Not run)

tcR documentation built on July 2, 2020, 3:18 a.m.