# This is our external R script called example.R
# We're adding two chunks variablesXY and plotXY
## @knitr variablesXY
x<-1:100
y<-x+rnorm(100)
head(data.frame(x,y))
## @knitr plotXY
plot(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.