,目前想到的办法是使用ggpubr这个R包把图例单独挑出来,然后使用annotation_custom()函数再把图例加回去。...`))+
geom_point(aes(color=variants))
image.png
细节调整
ggplot(data=new.data,aes(x=name,y=mean_value...1,0.1,0.1,0.1),'cm'),
legend.position = "none")+
coord_cartesian(clip = "off")+
annotation_custom(grob...xmin = 22,xmax = 22,
ymin=0.5,ymax = 0.5)+
annotation_custom(grob...library(patchwork)
pdf(file = "abc.pdf",
width = 9.4,height = 4)
pp + pp
dev.off()
image.png
示例数据和代码可以自己到论文中获取