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
131 stars 4 forks source link

ggbreak with legend position manually setup #44

Open yaqinguo opened 2 years ago

yaqinguo commented 2 years ago

can someone help me with the following issues: when I use scale_y_break, how I can customize my legend position? ggplot(data,aes(x,y,fill))+ geom_bar()+ facet_grid()+ theme(legend_position=c(0.9,0.6))+ scale_y_break(c(3,7),scale=1,expand=F) I got the following the warning messages: 1: Manual legend position not possible for collected guides. Defaulting to 'right' 2: Manual position of collected guides not supported