Learn R Programming

tcR (version 2.2.4)

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 = "Histogram of clonotypes read counts", .col = "Read.count")

Arguments

.data

Cloneset data frame or a list of clonesets.

.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 with counts.

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
# NOT RUN {
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