DMHeatMap {kyotil} | R Documentation |
Better Heatmap Function
Description
Makes a heatmap representation of correaltion coefficients easier.
Usage
DMHeatMap(x, Rowv = TRUE, Colv = if (symm) "Rowv" else TRUE, distfun = dist,
hclustfun = hclust, dendrogram = c("both", "row", "column", "none"),
symm = FALSE, scale = c("none", "row", "column"), na.rm = TRUE,
revC = identical(Colv, "Rowv"), add.expr, breaks,
symbreaks = min(x < 0, na.rm = TRUE) || scale != "none", col="heat.colors", colsep,
rowsep, sepcolor = "white", sepwidth = c(0.05, 0.05), cellnote, notecex = 1,
notecol = "cyan", na.color = par("bg"), trace = c("column", "row", "both", "none"),
tracecol = "cyan", hline = median(breaks), vline = median(breaks), linecol=tracecol,
margins = c(5, 5), ColSideColors, RowSideColors, cexRow = 0.2 + 1/log10(nr),
cexCol = 0.2 + 1/log10(nc), labRow = NULL, labCol = NULL, labColor = NULL, key =TRUE,
keysize = 1.5, density.info = c("histogram", "density", "none"), denscol = tracecol,
symkey = min(x < 0, na.rm = TRUE) || symbreaks, densadj = 0.25, main = NULL,
xlab = NULL, ylab = NULL, lmat = NULL, lhei = NULL, lwid =NULL, lower.left.only=TRUE,
...)
Arguments
x |
|
Rowv |
|
Colv |
|
distfun |
|
hclustfun |
|
dendrogram |
|
symm |
|
scale |
|
na.rm |
|
revC |
|
add.expr |
|
breaks |
|
symbreaks |
|
col |
|
colsep |
|
rowsep |
|
sepcolor |
|
sepwidth |
|
cellnote |
|
notecex |
|
notecol |
|
na.color |
|
trace |
|
tracecol |
|
hline |
|
vline |
|
linecol |
|
margins |
|
ColSideColors |
|
RowSideColors |
|
cexRow |
|
cexCol |
|
labRow |
|
labCol |
|
labColor |
|
key |
|
keysize |
|
density.info |
|
denscol |
|
symkey |
|
densadj |
|
main |
|
xlab |
|
ylab |
|
lmat |
|
lhei |
|
lwid |
|
lower.left.only |
|
... |
|
Examples
cor=matrix(runif(15),5,3)
breaks=c(-1,-.7,-.5,-.3,-.1,.1,.3,.5,.7,1)
hU=DMHeatMap(cor, trace="none", symm=FALSE,dendrogram="none", col=RColorBrewer::brewer.pal(
length(breaks)-1,"RdYlGn"), distfun = function(c) as.dist(1 - c), cexRow =1.5, cexCol =1.5,
lmat=rbind( c(2, 1), c(4,3) ), lhei=c(4, 1 ), breaks=breaks, margins=c(2,2), key = FALSE,
Rowv=NA, lower.left.only=FALSE)
[Package
kyotil version 2018.10-17
Index]