Plot a distribution (bar plot) of the most frequent kmers in a data.
# S3 method for immunr_kmer_table vis(.data, .head = 100, .position = c("stack", "dodge", "fill"), .log = F, ...)
.data | 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 |
.log | Logical. If TRUE then plot log-scaled plots. |
... | Not used here. |
get.kmers
# 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) # }