R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
You can embed an R code chunk like this:
1summary(cars)
2## speed dist
3## Min. : 4.0 Min. : 2.00
4## 1st Qu.:12.0 1st Qu.: 26.00
5## Median :15.0 Median : 36.00
6## Mean :15.4 Mean : 42.98
7## 3rd Qu.:19.0 3rd Qu.: 56.00
8## Max. :25.0 Max. :120.00
9fit <- lm(dist ~ speed, data = cars)
10fit
11##
12## Call:
13## lm(formula = dist ~ speed, data = cars)
14##
15## Coefficients:
16## (Intercept) speed
17## -17.579 3.932
Including Plots
You can also embed plots. See Figure 1 for example:
1par(mar = c(0, 1, 0, 1))
2pie(
3 c(280, 60, 20),
4 c('Sky', 'Sunny side of pyramid', 'Shady side of pyramid'),
5 col = c('#0292D8', '#F7EA39', '#C4B632'),
6 init.angle = -50, border = NA
7)

Figure 1: A fancy pie chart.