Learn R Programming

tcR (version 1.3)

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

Description

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

Usage

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

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.

Value

  • ggplot object.

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab