smoother<-function(x,s=smooth){ c(rep(NA,floor((s-1)/2)), apply(embed(x,s),1,mean,na.rm=T), rep(NA,ceiling((s-1)/2))) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.