jokergoo / EnrichedHeatmap

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

Custom ticks and label position at x-axis #40

Closed ATpoint closed 4 years ago

ATpoint commented 5 years ago

Hey Zuguang,

is there an option to remove the ticks at the x-axis except those at the upper/lower limit and at the center position while centering the labels at these positions as shown in this manual edit below?

Thanks! -Alex

Screen Shot 2019-08-16 at 11 44 43

jokergoo commented 5 years ago

Hi, sorry for the late reply. I was on vocation.

There is no open API to remove the ticks, but you directly modify the internal function:

assignInNamespace("calc_minor_ticks", function(x) NULL, ns = "EnrichedHeatmap")
EnrichedHeatmap(...)

The positions of the first label and the last label cannot be easily modified, unfortunately.