jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.31k stars 227 forks source link

Colors in HeatmapAnnotation() in ComplexHeatmap become vague in PDF output #1203

Open xlucpu opened 2 months ago

xlucpu commented 2 months ago

I am using ComplexHeatmap in R to generate an oncoprint with annotations for ~10,000 samples. When viewing the heatmap within R, the colors in the annotations are clear, see below:

80edc0140331da3901ad4fb1d42b507

However, when I export the heatmap to a PDF, the colors in the annotations become vague and unclear, see below:

8787917ee4132ff23c294a2aa6bf03b

I understand that the use_raster argument can help for heatmap bodies, but it doesn't seem to apply to HeatmapAnnotation().

Any suggestions?