library("knitr") ### Chunk options ### ## Text results opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE, size = 'tiny') ## Code decoration opts_chunk$set(tidy = FALSE, comment = NA, highlight = TRUE, prompt = FALSE, crop = TRUE) # ## Cache # opts_chunk$set(cache = TRUE, cache.path = "knitr_output/cache/") # ## Plots # opts_chunk$set(fig.path = "knitr_output/figures/") opts_chunk$set(fig.align = 'center', out.width = '90%') ### Hooks ### ## Crop plot margins knit_hooks$set(crop = hook_pdfcrop) ## Reduce font size ## use tinycode = TRUE as chunk option to reduce code font size # see http://stackoverflow.com/a/39961605 knit_hooks$set(tinycode = function(before, options, envir) { if (before) return(paste0("\n \\", options$size, "\n\n")) else return("\n\n \\normalsize \n") })
Fill in with content:
knitr::include_graphics
)This slide does not have a title
(bigger)
\huge
This slide does not have a title
\normalsize
\tiny Some text
\scriptsize Some text
\footnotesize Some text
\small Some text
\normalsize Some text
\large Some text
\huge Some text
First item
Second item
::: incremental - First item
:::
::: nonincremental ::: - First item
:::
Some text here
\vspace{10mm}
\hspace{10mm} Some more text
Some text
. . .
More text
See below
\raggedright \footnotesize Some reference here \raggedleft
\centering This text is centered
::: hide :::
Do not show it
:::
:::::::::::::: {.columns align=center} ::: {.column width="40%"} Some text on the left
Could be an image too ::: ::: {.column width="60%" align=center} Something else on the right
whatever ::: ::::::::::::::
data(iris) plot(iris)
data(iris) plot(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.