- Much easier syntax
syntaxthan LaTex or Html - Dynamic: easy to update and work with the R codes
- Multiple output formats
- Makes presentation easy
- Keep me (and my group) organized of weekly research progress reports, slides, papers etc.
2020/02/10 (updated: 2020-03-09)
Write inline R code using backtick quotes: forecast()
See Hong, Pinson, and Fan (2014).
You can use interactive plots for if you output html documents.
knitr::kable(head(iris))
Sepal.Length | Sepal.Width | Petal.Length | Petal.Width | Species |
---|---|---|---|---|
5.1 | 3.5 | 1.4 | 0.2 | setosa |
4.9 | 3.0 | 1.4 | 0.2 | setosa |
4.7 | 3.2 | 1.3 | 0.2 | setosa |
4.6 | 3.1 | 1.5 | 0.2 | setosa |
5.0 | 3.6 | 1.4 | 0.2 | setosa |
5.4 | 3.9 | 1.7 | 0.4 | setosa |
library(forecast) library(ggplot2) autoplot(AirPassengers)
Hong, Tao, Pierre Pinson, and Shu Fan. 2014. “Global Energy Forecasting Competition 2012.” International Journal of Forecasting 30 (2): 357–63.