Skip to content

Instantly share code, notes, and snippets.

@jeffbruce
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffbruce/7412f567ac57fe1721a3 to your computer and use it in GitHub Desktop.
Save jeffbruce/7412f567ac57fe1721a3 to your computer and use it in GitHub Desktop.
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