2020/02/10 (updated: 2020-03-09)

Why R markdown?

  • Much easier syntax syntax than 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.

Header 1

Header 2

Creation of lists

unordered

  • Item 1
  • Item 2

ordered

  1. Item 1
  2. Item 2
    • item 2a
    • item 2b

Inline codes

Write inline R code using backtick quotes: forecast()

Equations

  • \(x + y = z\) for inline equations
  • \[ x^2 + \sqrt{(y)} = \epsilon \]

Hyperlink

R code chunks with plot

See Hong, Pinson, and Fan (2014).

Interactive plots

You can use interactive plots for if you output html documents.