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

Description Usage Arguments See Also Examples

View source: R/plots.R

Description

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

Usage

1
2
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 May 19, 2017, 9:48 p.m.

Search within the tcR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.