我想做一个小提琴图,映射到y轴的数据均大于0。但不知道为什么,做出来的图向竟然出现了y<0的部分(如下图所示)。在网上没有找到答案,麻烦各位老师给予指点,谢谢。
数据已上传,烦请各位老师帮忙!
- dsmall <- read.xlsx("volin.xlsx")
- head(dsmall)
- ggplot(dsmall,aes(x=Prey,y=value,fill=Prey))+
- geom_violin(trim=FALSE,color="white",alpha=0.8,width=2)+
- geom_jitter(shape=16, position=position_jitter(.02))+
- geom_crossbar(stat = "summary",fun=median,width=0.2)+
- theme_bw()