jokergoo / EnrichedHeatmap

make enriched heatmap which visualizes the enrichment of genomic signals to specific target regions.
http://jokergoo.github.io/EnrichedHeatmap/
Other
187 stars 25 forks source link

Suggestion: gpar() for heatmap border #31

Closed lakhanp1 closed 6 years ago

lakhanp1 commented 6 years ago

Hi Zuguang,

Thank you for creating and actively maintaining ComplexHeatmap and EnrichedHeatmap packages.

EnrichedHeatmap provides a logical option border to show or hide the plot border. Is it possible to provide an option to control the graphic parameters of the plot border?

Thank you again! Lakhan

jokergoo commented 6 years ago

Hi Lakhan,

I am currently developing a new version ComplexHeatmap package and I will update EnrichedHeatmap package accordingly. In the new version, I will add this functionality.

Currently, you can implement it by decorate_heatmap_body()

draw(EnrichedHeatmap(..., border = FALSE))
decorate_heatmap_body(..., {
    grid.rect(gp = gpar(...))  # control the border here
})
lakhanp1 commented 6 years ago

Thank you Zuguang. I am looking forward to the new version of ComplexHeatmap.