I'm currently working on modifying some R-code I got provided to fit my needs.
The situation is the following:
We are plotting ~200 lines. They then used LOWESS to get a best-fit curve.
It looks like this right now:
lines(lowess(x.lowess, y.lowess), lwd = 3)
where x.lowess and y.lowess are the corresponding coordinates, each in a vector, such as:
> dput(x.lowess)
c(0.268309377138946, 0.511978097193703, 0.785763175906913, 0.974674880219028, ... )
> dput(y.lowess)
c(0.8, 0.5, 0.8, 0.5, ... )
I am now looking the get a running median curve instead of a LOWESS best-fit curve.
Is there any simple way/function for doing this?
for an example of the plot, seee this on flickr (sorry, couldn't upload it directly, i'm new here and it's not allowed :) plot with lowess smoothing curve in red