This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Forum: Be Careful With Visualising Heatmap.2() Output As Pdf

Hi folks,

This is just to alert users of a "surprise" we encountered while exploring the PDF output of heatmap.2() in R.

In essence, because of overplotting, it looked as though there was no data in areas of the heatmap when the PDF was viewed at 100% zoom.

The data "reappeared" at higher zoom levels.

Visit AustralianBioinformatics.net for more details on this gotcha.

Cheers,
David

heatmap heatmap.2 r

I think this is just a rendering issue of the PDF viewer, when there are more details than pixels available on screen. Therefore, it isn't really very surprising. In order to display on a low-resulution device the renderer needs to reduce the resolution of the screen image which is always a compromise. The image data is correct, because when you zoom in it is visible. Did you try a different PDF viewer?

Agreed. Looks like way too many rows are shown in the diagram. There isn't visibly data there anyway.

Yeah, I think so too, but what surprised me was the order of rendering: the white "NA" regions were rendered last, hiding the data underneath. I haven't tried other browsers but wanted to share this mainly so that people are aware of the potential to be misled.

0 answers

No answers yet.

Log in to answer this question.