R - Markdown




Metadata



title: “”
author: “”
date: “”
output: html_document (word,pdf,beamer/slidy_presentation)

Content


# Header
## 2ndary header

*italic*
**bold**
`code`

list
(blank line)
* 1
(blank line)
* 2
(blank line)
* 3
Code

inline `r x + y`, will display the result

block

“`{r namedBlock echo = FALSE to hide the code, eval = FALSE not run code hide code+result, result = ‘hide’, message = FALSE, warning = FALSE, error = FALSE}
library(abc)
code
“`



“`{r ref.label = ‘namedBlock’ , echo = , eval = }
“`

Produce output files


render(“doc.rmd”, “html_document”)

ggvis is only good for html document, to export pdf, there are more steps to take… So better use ggplot2 for pdf.

*** to separate into new slides

pandoc


Select theme and extra options in metadata:

output:

html_document:

theme:
toc: true
css:

shiny, more interactive html

Add metadata

runtime: shiny

Comments

Popular posts from this blog

Bryan Peterson – Learning to See Creatively

R – Stats, factor count,proportion

R - Supervised Learning