Removing White Lines In Heatmap
1
3
Entering edit mode
11.2 years ago
Woa ★ 2.9k

Hello all,

I'm trying to plot a heatmap using the heatmap.2 function from the 'Gplots' package.I'm getting some unwanted white lines separating some of the rows and columns. Can somebody help me out to get rid of these lines? The code and the plot are as follows:

Heatmap

Thanks in Advance

heatmap.2(my.mat,
Rowv=TRUE,
Colv=FALSE,
dendrogram= c("row"),
scale="none",
distfun = dist,
hclustfun = hclust,
key=TRUE,
keysize=1,
trace="none",
density.info=c("none"),
margins=c(15, 20),
col=redgreen(75),
sepwidth=c(0,0),
cexRow=1.00    
)
r heatmap • 10k views
ADD COMMENT
1
Entering edit mode

Hi, try to print your heatmap in a file, it could be an artifact from the graphic device.

ADD REPLY
0
Entering edit mode

Actually I'm printing it to a png file.I'm not sure, but can this be a case as mentioned here: https://stat.ethz.ch/pipermail/r-devel/2011-July/061540.html

ADD REPLY
2
Entering edit mode

I had the same problem and by changing the size while using png() I was able to remove the white lines, even if you change the size by 1 pixel. Another question: are-you using png() or dev.opy()?

ADD REPLY
0
Entering edit mode

I'm using png()

ADD REPLY
0
Entering edit mode
11.2 years ago
Woa ★ 2.9k

The plot works fine with R version 2.12.1

ADD COMMENT

Login before adding your answer.

Traffic: 1924 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6