How does one overcome overlapping points without jitter or transparency in ggplot2

后端 未结 3 658
无人及你
无人及你 2021-02-06 10:20

I am starting to use ggplot2. I have some small n (about 30 or so) granular data with lots of overlap. Neither jitter nor alpha (transparency) are suitable. Instead a stripchart

3条回答
  •  忘掉有多难
    2021-02-06 10:34

    You want to use geom_dotplot from ggplot2

    you will probably want to use:

    ggplot(insert your arguments here) + geom_dotplot(binaxis = "y", stackdir = "center")
    

    Hope this helps. The results will look really clean which is what I think you want.

提交回复
热议问题