方法2 gghalves library(gghalves)ggplot(iris,aes(x=Species,y=Sepal.Width))+geom_half_point()+geom_point()head(my_data)ggplot()+geom_half_violin(data=my_data%>%filter(x=="a"& m=="i"),aes(x=x,y=y,fill=m),side="l")+geom_half_violin(data=my_data%>%filter(x=="a"& m=="j...
ggplot(data, aes(x = x_var, y = y_var, fill = group_var)) + geom_half_violin() + geom_boxplot(width = 0.1) # 自定义样式和标签 ggplot(data, aes(x = x_var, y = y_var, fill = group_var)) + geom_half_violin(fill = "lightblue", color = "black") + geom_boxplot(width...
geom_half_violin geom_half_point All of them have asideargument that can be eitherlfor left orrfor right half. As a special case there is alsogeom_half_dotplotto support half dotplots that dodge aesthetics such asfillandcolour. gghalvesalso works well with otherggplot2geoms and extensions ...