I have a frequency distribution I am trying to plot in R. The dataset is quite noisy however and results in an untidy plot.
I would like to take the mean of 10 unit sliding windows and plot that data instead. Hopefully this will clean up the plot, by reducing the number of data points?
I have tried scatter.smooth() and loess(), but these don't do what I want. I could code this myself, but wondered if anyone was aware of a function that might save the time?