View source: R/kmeRs_heatmap.R
kmeRs_heatmap | R Documentation |
The kmeRs_heatmap
function generates a heatmap from similarity score matrix
kmeRs_heatmap(
x,
cexRow = NULL,
cexCol = NULL,
col = NULL,
Colv = NA,
Rowv = NA
)
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 |
heatmap from results
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.