vis.kmer.histogram: Plot of the most frequent kmers.

Description Usage Arguments See Also Examples

Description

Plot a distribution (bar plot) of the most frequent kmers in a data.

Usage

1
2
3
4
5
vis.kmer.histogram(
  .kmers,
  .head = 100,
  .position = c("stack", "dodge", "fill")
)

Arguments

.kmers

Data frame with two columns "Kmers" and "Count" or a list with such data frames. See Examples.

.head

Number of the most frequent kmers to choose for plotting from each data frame.

.position

Character vector of length 1. Position of bars for each kmers. Value for the ggplot2 argument position.

See Also

get.kmers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
# Load necessary data and package.
library(gridExtra)
load('immdata.rda')
# Get 5-mers.
imm.km <- get.kmers(immdata)
# Plots for kmer proportions in each data frame in immdata.
p1 <- vis.kmer.histogran(imm.km, .position = 'stack')
p2 <- vis.kmer.histogran(imm.km, .position = 'fill')
grid.arrange(p1, p2)

## End(Not run)

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