How to improve jagged line graph in ggplot2?

前端 未结 4 1683
無奈伤痛
無奈伤痛 2021-02-14 10:57

Is their any process to improve jagged lines produced by geom_line() joining multiple points into smooth presentable lines in ggplot2?

     lai.se <- structu         


        
4条回答
  •  灰色年华
    2021-02-14 11:37

    In your answer to my comment you confirm that you want to anti-alias your lines (not change the curve of your plot).

    I think the only way to do that in R is to use Cairo and here is a tutorial on how to do that with circles, i hope you can adapt that to do it with lines:

    http://www.r-bloggers.com/weekend-art-in-r-part-3/

提交回复
热议问题