2018-09-15 16:05:26 +02:00
|
|
|
---
|
2018-09-19 03:22:22 +02:00
|
|
|
title: A minimal example
|
|
|
|
subtitle: With a subtitle
|
|
|
|
author: Matthias Vogelgesang
|
|
|
|
date: \today
|
|
|
|
institute: Centre for Modern Beamer Themes
|
2018-09-15 16:05:26 +02:00
|
|
|
output: binb::metropolis
|
2018-09-19 03:22:22 +02:00
|
|
|
fontsize: 12pt
|
2018-09-15 16:05:26 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
```{r,setup, include=FALSE}
|
|
|
|
knitr::opts_chunk$set(cache=TRUE)
|
|
|
|
```
|
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
# First Section
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## First Frame
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
Hello, world!
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
# Second Section
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## Second Frame
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
### Bulleted Lists
|
|
|
|
- Element A
|
|
|
|
- Element B
|
|
|
|
- B.1
|
|
|
|
- B.2
|
|
|
|
- Element C
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
# Elements
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## Typography
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
```
|
|
|
|
The theme provides sensible defaults to
|
|
|
|
\emph{emphasize} text, \alert{accent} parts
|
|
|
|
or show \textbf{bold} results.
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
In Markdown, you can also use _emphasize_ and **bold**.
|
|
|
|
```
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
\begin{center}becomes\end{center}
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
The theme provides sensible defaults to \emph{emphasize} text,
|
|
|
|
\alert{accent} parts or show \textbf{bold} results.
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
In Markdown, you can also use _emphasize_ and **bold**.
|
2018-09-15 16:05:26 +02:00
|
|
|
|
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## Math
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
\begin{equation*}
|
|
|
|
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
|
|
|
|
\end{equation*}
|
2018-09-15 16:05:26 +02:00
|
|
|
|
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## R Figure Example
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
The following code generates the plot on the next slide (taken from
|
|
|
|
`help(bxp)` and modified slightly):
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
```{r pressureCode, eval=FALSE}
|
|
|
|
library(stats)
|
|
|
|
set.seed(753)
|
|
|
|
bx.p <- boxplot(split(rt(100, 4),
|
|
|
|
gl(5, 20)), plot=FALSE)
|
|
|
|
bxp(bx.p, notch = FALSE, boxfill = "lightblue",
|
|
|
|
frame = FALSE, outl = TRUE,
|
|
|
|
main = "Example from help(bxp)")
|
|
|
|
```
|
2018-09-15 16:05:26 +02:00
|
|
|
|
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## R Figure Example
|
|
|
|
|
|
|
|
```{r pressureFig, echo=FALSE}
|
|
|
|
library(stats)
|
|
|
|
set.seed(753)
|
|
|
|
bx.p <- boxplot(split(rt(100, 4),
|
|
|
|
gl(5, 20)), plot=FALSE)
|
|
|
|
bxp(bx.p, notch = FALSE, boxfill = "lightblue",
|
|
|
|
frame = FALSE, outl = TRUE,
|
|
|
|
main = "Example from help(bxp)")
|
|
|
|
```
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## R Table Example
|
|
|
|
|
|
|
|
A simple `knitr::kable` example:
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
```{r kableEx}
|
|
|
|
knitr::kable(mtcars[1:5, 1:8],
|
|
|
|
caption="(Parts of) the mtcars dataset")
|
|
|
|
```
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
## Resources
|
2018-09-15 16:05:26 +02:00
|
|
|
|
2018-09-19 03:22:22 +02:00
|
|
|
### For more information:
|
|
|
|
- See the [Metropolis repository](https://github.com/matze/mtheme) for more on Metropolis
|
|
|
|
- See the [RMarkdown repository](https://github.com/rstudio/rmarkdown) for more on RMarkdown
|
|
|
|
- See the [binb repository](https://github.com/eddelbuettel/binb) for more on binb
|
|
|
|
- See the [binb vignettes](https://github.com/eddelbuettel/binb/vignettes) for more examples.
|