Plain R code...
1+1
R Markdown with html output format
# This is pretty:
- cool!
- fun!
- fast!
```{r echo=FALSE, message=FALSE}
library(ggplot2)
ggplot(mtcars, aes(x=as.factor(cyl), y=mpg)) +
geom_boxplot() +
labs(x = 'Cylinders', y = 'Miles per Gallon')
```
R Markdown with pdf document format
---
output: pdf_document
---
# mtcars dataset
```{r echo=FALSE}
str(mtcars)
```