ggplot alpha levels appear different on fill and border of points (ringing artefact)

后端 未结 3 2054
野性不改
野性不改 2021-01-02 14:09

I am plotting many points using ggplot with a constant transparency value for all points.

What I find is that the circular points have a more transparent fill than

3条回答
  •  不知归路
    2021-01-02 14:28

    Changing stroke to 0 seems to have hte desired result:

    ggplot(data, aes(x,y)) + 
      geom_point(alpha=0.2, colour="dodgerblue", fill=mycol, stroke=0,  size=5) +
      theme(panel.background = element_rect(fill = 'black', colour = 'black'))
    

提交回复
热议问题