Question: Removing White Lines In Heatmap
3
gravatar for Woa
6.0 years ago by
Woa2.7k
United States
Woa2.7k wrote:

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 • 5.5k views
ADD COMMENTlink modified 6.0 years ago • written 6.0 years ago by Woa2.7k
1

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

ADD REPLYlink modified 6.0 years ago • written 6.0 years ago by Maxime Lamontagne2.1k

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 REPLYlink written 6.0 years ago by Woa2.7k
2

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 REPLYlink modified 6.0 years ago • written 6.0 years ago by Maxime Lamontagne2.1k

I'm using png()

ADD REPLYlink written 6.0 years ago by Woa2.7k
0
gravatar for Woa
6.0 years ago by
Woa2.7k
United States
Woa2.7k wrote:

The plot works fine with R version 2.12.1

ADD COMMENTlink written 6.0 years ago by Woa2.7k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1166 users visited in the last hour