Ali
Ali

Reputation: 9850

R remove borders of pheatmap

I found the pheatmap (pretty heatmap) package a really nice and easy way to produce heatmaps. In addition to normal heatmap() command, it produces a color bar representing which quantity is behind each color, and also does not have unwanted details of heatmap.2.

There is a thin border between rows and columns. No problem for low number of rows, but for higher number of rows these borders make the heatmap not so nice. Is there any solution to remove them?

According to the manual, the border_color=NA should remove it, however when I create a PDF file from the output, still there exist thin borders between the rows and columns.

Upvotes: 3

Views: 6661

Answers (2)

Xianjun
Xianjun

Reputation: 161

I had the same problem; gray border lines in PDF, but not in TIFF or PNG. But I found you can remove the border lines easily in Adobe Illustrator.

Upvotes: 0

Ali
Ali

Reputation: 9850

It seems borders are a problem of PDF viewer program like Mac Preview and Adobe Reader. They are removed when the heatmap is transformed to an picture format like TIFF or PNG.

Upvotes: 4

Related Questions