Last active
August 29, 2015 14:22
-
-
Save jeffbruce/7412f567ac57fe1721a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(gplots) | |
fullmousedatamat <- readRDS('fullmousedatamat') | |
partialmousedatamat <- readRDS('partialmousedatamat') | |
jdfs <- function(x) { as.dist(1-cor(t(x))) } | |
heatmap = heatmap.2(x=fullmousedatamat, | |
distfun=jdfs, | |
breaks=seq(-3, 3, by=0.4), | |
symbreaks=TRUE, | |
col=bluered, | |
margins=c(20,14), | |
trace='none', | |
cexRow=1.5, | |
cexCol=1.5, | |
density.info='histogram', | |
keysize=0.8, | |
key.title='Effect Size', | |
key.xlab='Relative to Wildtype', | |
symkey=TRUE) | |
heatmap = heatmap.2(x=partialmousedatamat, | |
distfun=jdfs, | |
breaks=seq(-3, 3, by=0.4), | |
symbreaks=TRUE, | |
col=bluered, | |
margins=c(20,14), | |
trace='none', | |
cexRow=1.5, | |
cexCol=1.5, | |
density.info='histogram', | |
keysize=0.8, | |
key.title='Effect Size', | |
key.xlab='Relative to Wildtype', | |
symkey=TRUE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment