Forum:Be Careful With Visualising Heatmap.2() Output As Pdf
0
2
Entering edit mode
11.8 years ago
David.Lovell ▴ 20

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 • 4.7k views
ADD COMMENT
2
Entering edit mode

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?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 4105 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