How to distinguish overlapping points in ggplot

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 4

  • @djangoworldwide7925
    @djangoworldwide7925 3 หลายเดือนก่อน

    Great, didnt know the atroke argument with shape 21!
    Question: can you control thr stroke's transparency? Something like stroke_alpha? I assume there's a css behind the scenes for it.
    Another thing:
    You can use position_dodge() to set x and/or y distance, much like jitter but with greater control

    • @rfortherestofus
      @rfortherestofus  3 หลายเดือนก่อน

      I've never looked into setting the transparency of the stroke. Let me know if you figure out whether it works!

    • @djangoworldwide7925
      @djangoworldwide7925 2 หลายเดือนก่อน

      ​​@@rfortherestofus
      th-cam.com/video/of6wzzQxqJg/w-d-xo.htmlsi=AIqQNr0Hi_L3tHj7
      In this video, pat scchloss was able to find an interesting workaround by creating an annotation of just the stroke (fill = NA) so he controls the stroke independently from the fill.
      11:20 I think it began.

    • @djangoworldwide7925
      @djangoworldwide7925 2 หลายเดือนก่อน +1

      ​@@rfortherestofuspat scchloss found a way. Basically, have one geom with just the fill (color of point) and another one with just the stroke, and control their transparencias independently of each other