This is a test version of Biostars. For the public version, visit https://www.biostars.org.
ggplot2 filter

I use R package ggplot2 to draw a line chart, but it's too cluttered. Does ggplot2 has a function to filter? Like HP filter. And my data is a dataframe.

enter image description here

r

You mean a smoother such as a GAM or loess fit? Check geom_smooth(), just google it, many posts on that.

Thank you very much, I will try it.

0 answers

No answers yet.

Log in to answer this question.