[英]How to increase the distance between boxplots (ggplot2) which have discrete x-axis - position_dodge?
[英]ggplot increase distance between boxplots
查看position_dodge
, width
参数可以帮助间距
mtcars$sep <- 1:2 # a factor
ggplot(mtcars, aes(x=factor(carb), y=mpg, fill=factor(sep))) +
geom_boxplot(position=position_dodge(width=0.8))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.