tcR (version 1.1)

vis.number.count: Plot a histogram of counts.

Description

Plot a histogram of distribution of counts of CDR3 nucleotide sequences. On y-axis are number of counts.

Usage

vis.number.count(.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.number.count(immdata[[1]], 'Main title here')
# Plot a grid of histograms with 2 columns.
vis.number.count(immdata, 2)

Run the code above in your browser using DataLab