issue with heatmap
for function heatmap.R in develop-heatmap:
I'm having 2 problems:
-
when I create a figure, I have a white page before. Any idea how I can remove it?
-
when the plot is too big, the legend gets hidden. Do you know what should be done to avoid this type of situation?
Here is the code I use to test the function:
figpath='~/Desktop/TEMP/' heatmapfile=paste(figpath,'heatmap.eps',sep='')
ndata=9 nrow1=3 ncol1=ndata/nrow1
mat.pval <- matrix(runif(ndata, min=0.01, max=0.25), nrow=nrow1) mat.beta <- matrix(rnorm(ndata), nrow=nrow1) mat.pval[1,1] <- 0.001
#rownames(mat.beta) <- rownames(mat.pval) <- c("A", "B", "C") #colnames(mat.beta) <- colnames(mat.pval) <- c("X", "Y", "Z")
postscript(heatmapfile) heatmap(mat.pval=mat.pval, mat.beta=mat.beta, pos_leg=c(0.6,0)) dev.off()