kmeRs_heatmap {kmeRs} | R Documentation |
K-mer similarity score heatmap
Description
The kmeRs_heatmap
function generates a heatmap from similarity score matrix
Usage
kmeRs_heatmap(
x,
cexRow = NULL,
cexCol = NULL,
col = NULL,
Colv = NA,
Rowv = NA
)
Arguments
x |
matrix calculated by |
cexRow |
= NULL |
cexCol |
= NULL |
col |
color palette, when NULL the default palette is applied |
Colv |
when different from NA, the column dendrogram is shown |
Rowv |
when different from NA, the row dendrogram is shown |
Value
heatmap from results
Examples
# Use RColorBrewer to generate a figure similar to publication
library(RColorBrewer)
h.palette <- rev(brewer.pal(9, "YlGnBu"))
q0 <- c("GATTACA", "ACAGATT", "GAATTAC", "GAAATCT", "CTATAGA", "GTACATA", "AACGATT")
example <- kmeRs_similarity_matrix(q0, submat = "BLOSUM62")
kmeRs_heatmap(kmeRs_score(example), col = h.palette)
[Package kmeRs version 2.1.0 Index]