YuLab-SMU / ggbreak

:broken_heart: An implementation of scale functions for setting axis breaks of a 'gg' plot.
https://www.frontiersin.org/articles/10.3389/fgene.2021.774846
129 stars 4 forks source link

be compatible with ggrepel? #35

Open Li-ZhiD opened 2 years ago

Li-ZhiD commented 2 years ago

I plot points with ggrepel and ggbreak, but the labels are not as we expected: the right break region has the duplicated labels as the left.

image

AngusMackenzie commented 12 months ago

I've come across this problem too. What I've done is have a seperate geom_repel for each break and set the x/y limits accordingly. A hacky solution that requires specific control, I'd also appreciate something more reliable.