YuLab-SMU / aplot

Decorate a plot with associated information
https://yulab-smu.top/aplot
97 stars 14 forks source link

Legend position #16

Closed bengouts closed 2 years ago

bengouts commented 2 years ago

Hi, I was wandering if it was possible to adjust legend position. For instance, in the example from the vignette, i would like to do something like

my.plot = p %>% insert_left(phr, width=.3) %>% 
  insert_right(pp, width=.4)  %>% 
  insert_right(g, width=.4) %>% 
  insert_top(pc, height=.1) %>% 
  insert_top(phc, height=.2)

my.plot + theme(legend.position="bottom")

but i can't make it work... Thanks this great package and for your help ! Ben

GuangchuangYu commented 2 years ago

use print(my.plot) & theme(legend.position='bottom') as demonstrated in https://github.com/YuLab-SMU/aplot/issues/6#issuecomment-912634812.