R y轴断裂,带有gg间隙

R y轴断裂,带有gg间隙,r,ggplot2,boxplot,R,Ggplot2,Boxplot,我试图在箱线图上打断y轴。 由于某些原因,未使用gap.boxplot进行管理 终于找到了另一个包gg.gap geom_boxplot()+ facet_wrap(~SB, scale= "free")+ scale_fill_futurama(palette=c("planetexpress")) + guides(colour=FALSE) + labs(title = "Terminally branched FAs", su

我试图在箱线图上打断y轴。

由于某些原因,未使用gap.boxplot进行管理

终于找到了另一个包
gg.gap

geom_boxplot()+
facet_wrap(~SB, scale= "free")+
scale_fill_futurama(palette=c("planetexpress")) +
guides(colour=FALSE) +
labs(title = "Terminally branched FAs",
subtitle = get_test_label(res.aov, detailed = TRUE))+
ylab( "% of total PLFA")+
xlab(" ")+
theme(axis.title.y = element_text( size= 12))+
theme(title = element_text(size=10) ,legend.position = "none", plot.subtitle =element_text(size=10),
strip.text.x = element_text(margin = margin(0.05,0,0.05,0, "cm")))

p1<- gg.gap(plot=p1,
segments=list(c(20,70)),
ylim=c(0,100), margin = c(top = 2, right = 1, bottom = 1, left = 1))
已尝试转换为数据帧,但没有帮助

gap.boxplot(termin, gap=c(20,80))
Error: $ operator is invalid for atomic vectors with gap.boxplot.