1
0
mirror of https://github.com/eddelbuettel/binb synced 2024-12-22 20:49:58 +01:00
2018-09-18 20:22:22 -05:00

103 lines
2.1 KiB
Plaintext

---
title: A minimal example
subtitle: With a subtitle
author: Matthias Vogelgesang
date: \today
institute: Centre for Modern Beamer Themes
output: binb::metropolis
fontsize: 12pt
---
```{r,setup, include=FALSE}
knitr::opts_chunk$set(cache=TRUE)
```
# First Section
## First Frame
Hello, world!
# Second Section
## Second Frame
### Bulleted Lists
- Element A
- Element B
- B.1
- B.2
- Element C
# Elements
## Typography
```
The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts
or show \textbf{bold} results.
In Markdown, you can also use _emphasize_ and **bold**.
```
\begin{center}becomes\end{center}
The theme provides sensible defaults to \emph{emphasize} text,
\alert{accent} parts or show \textbf{bold} results.
In Markdown, you can also use _emphasize_ and **bold**.
## Math
\begin{equation*}
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\end{equation*}
## R Figure Example
The following code generates the plot on the next slide (taken from
`help(bxp)` and modified slightly):
```{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)")
```
## 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)")
```
## R Table Example
A simple `knitr::kable` example:
```{r kableEx}
knitr::kable(mtcars[1:5, 1:8],
caption="(Parts of) the mtcars dataset")
```
## Resources
### 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.