如何更改抖动图的宽度

时间:2018-07-04 15:56:48

标签: r ggplot2

jitter <- ggplot(diamonds[sample(nrow(diamonds), 1000), ],
                 aes(x=cut, y=price, color=clarity)) + 
  geom_point() + 
  geom_jitter(alpha=0.5) 

结果非常糟糕,所有观点都凝聚在一起。有什么功能可以将x轴拉伸到一个不错的方式吗?谢谢。

enter image description here

0 个答案:

没有答案