Title

class: center, middle

With this template, it is very easy to build good looking slides

and you can centre everything for title/section/other slides

# don't mind this code chunk, it just sets up a few things for the rest
# it doesn't appear, because the include argument above is FALSE...
options(htmltools.dir.version = FALSE, servr.daemon = TRUE)
knitr::opts_chunk$set(cache=TRUE, autodep = TRUE, fig.retina = 3, message = FALSE, warning = FALSE)
old <- ggplot2::theme_set(iheiddown::theme_iheid())
# Initializes the bibliography
library(RefManageR)
BibOptions(check.entries = FALSE,
           bib.style = "authoryear", # Bibliography style
           max.names = 3, # Max author names displayed in bibliography
           sorting = "nyt", #Name, year, title sorting
           cite.style = "authoryear", # citation style
           style = "markdown",
           hyperlink = FALSE,
           dashed = FALSE)
myBib <- ReadBib("assets/myBib.bib", check = FALSE)
# Note: don't forget to clear the knitr cache to account for changes in the
# bibliography.

class: middle, inverse, iheid-red

You can colour the background and add images using straightforward markdown syntax

.center[ .polaroid[]

James Hollway (Instructor) ]


You can also pull images (or text) to the left or right to build columns

.pull-left[ .polaroid[]

James Hollway (Instructor) ]

.pull-right[ I can add paragraphs of extra information...

or a bullet list...

or a numbered list...

  1. one
  2. two
  3. three ]

class: split-four, center

Present your team by slicing the slide up with ninjutsu!

.column[.pull-down[:scale 75%

Prof. Smith

Principal Investigator

]] .column[.pull-down[:scale 75%

Dr. Jones

Doctoral Research Assistant

]] .column[.pull-down[:scale 75%

Ms. Dupont

Research Assistant

]]

.column[.pull-down[:scale 75%

Mr. Dupond

Research Assistant

]]


You can build a step-by-step reveal

--

By using double dashes -- to separate lines of text or code, we can build a slide up gradually. --

For example here is some more text...

Or here is an example of some math...

$$ X = \sum_i^n x_i $$

--

Or here is a quick plot built (and cached) when the Rmarkdown document is run:

plot(iris)

class: highlight-last-item

Add progressive lists

Adding the class highlight-last-item allows you to highlight the last element of a progressive list.

--

--


class: show-only-last-code-result

Progressive code

Adding the class show-only-last-code-result allows you to render only the last code result.

runif(5)

--

rnorm(5)

--

rbinom(5, 1, 0.5)

--

rcauchy(5)

class: center, middle

Or you can highlight which section of your presentation you are up to...

.pull-1[.circleoff[]] .pull-1[.circleon[]] .pull-1[.circleoff[]]


class: left, middle

.blockquote[You can add unquotable quotes

~ Some person]


class: with-logo logo-iheid

Add a logo to your presentation

.pull-left[Adding a nice looking logo to your presentation is easy. Simply define the with-logo class alongside the class of the logo itself (logo-iheid in this case) on every slide you want the logo to appear.

See the presentation vignette for a list of the included logos.]


Add Maps

library(leaflet)
leaflet() %>%
  addTiles() %>%
  setView(6.1435, 46.2210, zoom = 17)

Add some tables !

With the addition of the excellent {xaringan_columns} macros by Emily Riederer, you can create nice looking multicolumn tables using clean markdown code.

![:col_header Header 1, Header 2, Header 3, Header 4, Header 5] ![:col_list You can add rows with bulletted lists, item2, item3, hello, more content] ![:col_list item4, item5, Or normal chunks of text (see below), la la la, tra la la] ![:col_row More text, More text, ., More text, More text ]


More tables; kable and kableExtra packages

.pull-left[Kable: great features for displaying simple tables!

knitr::kable(head(mtcars[1:4], 5), format = 'html')

See the knitr documentation for additional options. ]

.pull-right[Want to get fancier? Use kableExtra!

head(mtcars[1:4], 3) %>% 
  kableExtra::kbl()%>%
  kableExtra::kable_material(c("hover", "striped", "condensed"), full_width = F)

See the kableExtra documentation for additional options. ]


Interactive tables; DT package

library(DT)
DT::datatable(head(mtcars, 10),
  fillContainer = FALSE, options = list(pageLength = 4))

See the DT package documentation for the additional options.


Adding tweets

Embed tweets in your presentation!

.center2[

]


class: animateanimated, animateslideInRight

Add slide transitions to your slides

Simply add the class animate__animated and the class corresponding to the desired animation such as animate__slideInRight, et voilĂ !

For a complete list of the available animations and further options, visit animate.style.

.center[Animation GIF]


background-image: url(https://media1.giphy.com/media/xT0BKiK5sOCVdBUhiM/giphy.gif) background-size: contain

And finally, you can add gifs!


class: inverse iheid-red center middle with-logo logo-iheid_BW

Made with {iheiddown}, the R-package for IHEID publications r Cite(myBib, "iheiddown").


References

RefManageR::PrintBibliography(myBib)


Try the iheiddown package in your browser

Any scripts or data that you put into this service are public.

iheiddown documentation built on Nov. 10, 2022, 5:52 p.m.