Nested Pulls

pull content classes

The layout property can be used to create layout slides

Emil Hvitfeldt
05-21-2021

The .pull-left[] and .pull-right[] content classes are great in their own right to put material side by side.

You can put a pair of .pull-left[] and .pull-right[] inside one of these to further subdivide the slide.

Result

Rmd

---
output:
  xaringan::moon_reader:
    seal: false
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
      ratio: "16:9"
---

.pull-left[
.pull-left[
# Nested pulls
- x = mpg,
- y = disp,
- color = vs
]

.pull-right[
```{r scatter, dev='png', fig.show='hide', message=FALSE}
library(tidyverse)
mtcars %>%
  ggplot() +
  aes(
    x = mpg,
    y = disp,
    color = vs
  ) +
  geom_point()
```
]
]

.pull-right[
```{r, echo=FALSE}
knitr::include_graphics(
  knitr::fig_chunk("scatter", "png")
)
```
]

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Hvitfeldt (2021, May 21). Xaringan Gallery: Nested Pulls. Retrieved from https://xaringan.gallery/examples/nested-pulls/

BibTeX citation

@misc{hvitfeldt2021nested,
  author = {Hvitfeldt, Emil},
  title = {Xaringan Gallery: Nested Pulls},
  url = {https://xaringan.gallery/examples/nested-pulls/},
  year = {2021}
}