rm(list=ls()) knitr::opts_chunk$set(fig.width=6, fig.height=5, fig.crop = F, fig.path='figs/', echo=FALSE, warning=FALSE, cache=T, message=FALSE, sanitize = T)
Cite fancy references [@Garnier2007].
Results
You can use R chunks directly to plot graphs.
require("ggplot2") x <- 0:100 y <- 2 * (x + rnorm(length(x), sd = 3) + 3) ggplot(data = data.frame(x, y), aes(x = x, y = y)) + geom_point() + geom_smooth(method = "lm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.