[R] plot means ?

David Winsemius dwinsemius at comcast.net
Mon Jul 11 21:32:26 CEST 2011


On Jul 11, 2011, at 3:18 PM, Sam Steingold wrote:

> Hi,
> I need this plot:
> given: x,y - numerical vectors of length N
> plot xi vs mean(yj such that |xj - xi|<epsilon)
> (running mean?)
> alternatively, discretize X as if for histogram plotting and plot  
> mean y
> over the center of the histogram group.

It sounds as though you asking for smoothing splines with an  
adjustable band width ... something that is very easy in R.

>
> is there a simple way?
>
> thanks!
>
> -- 
> Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final)  
> X 11.0.60900031


David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list