create.avgplot <- function(x) {
tempAvg <- NULL
for (i in (1:length(x))) {
tempAvg[i] <- mean(x[1:i])
}
return(tempAvg)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.