# For PDF output, change the header to have "output: pdf_document". # # Note that due to an issue in rmarkdown, the default value of a parameter in # the header cannot be `NULL`, so I used a default of `NA` for the default value # of `n`.
# The `params` object is available in the document. params$n
A plot of r params$n
random points.
plot(rnorm(params$n), rnorm(params$n))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.