Processing math: 100%
+ - 0:00:00
Notes for current slide
Notes for next slide

Title

Subtitle

Author Name

`

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

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

`

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

James Hollway (Instructor)

`

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

James Hollway (Instructor)

I can add paragraphs of extra information...

or a bullet list...

  • one
  • two
  • three

or a numbered list...

  1. one
  2. two
  3. three
`

Present your team by slicing the slide up with ninjutsu!

Prof. Smith

Principal Investigator

Dr. Jones

Doctoral Research Assistant

Ms. Dupont

Research Assistant

Mr. Dupond

Research Assistant

`

You can build a step-by-step reveal

`

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.

`

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...

`

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=nixi

`

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=nixi

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

plot(iris)

`

Add progressive lists

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

  • First item
`

Add progressive lists

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

  • First item

  • Second item

`

Add progressive lists

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

  • First item

  • Second item

  • For more options, see the iheid-xaringan-style.css file and search for "progressive slides". This feature was based on this great article.

`

Progressive code

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

runif(5)
## [1] 0.3309911 0.0629267 0.9818636 0.6678840 0.7814797
`

Progressive code

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

runif(5)
## [1] 0.3309911 0.0629267 0.9818636 0.6678840 0.7814797
rnorm(5)
## [1] -1.52496611 0.06993266 -1.29372485 0.00552295 -0.44708406
`

Progressive code

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

runif(5)
## [1] 0.3309911 0.0629267 0.9818636 0.6678840 0.7814797
rnorm(5)
## [1] -1.52496611 0.06993266 -1.29372485 0.00552295 -0.44708406
rbinom(5, 1, 0.5)
## [1] 1 0 1 1 0
`

Progressive code

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

runif(5)
## [1] 0.3309911 0.0629267 0.9818636 0.6678840 0.7814797
rnorm(5)
## [1] -1.52496611 0.06993266 -1.29372485 0.00552295 -0.44708406
rbinom(5, 1, 0.5)
## [1] 1 0 1 1 0
rcauchy(5)
## [1] 2.207553 2.094960 3.352931 7.440851 -1.169294
`

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

`

You can add unquotable quotes

~ Some person

`

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.

Header 1
Header 2
Header 3
Header 4
Header 5
  • You can add rows with bulletted lists
  • item2
  • item3
  • hello
  • more content
  • item4
  • item5
  • Or normal chunks of text (see below)
  • la la la
  • tra la la
  • More text
    More text
    .
    More text
    More text
    `

    More tables; kable and kableExtra packages

    Kable: great features for displaying simple tables!

    knitr::kable(head(mtcars[1:4], 5), format = 'html')
    mpg cyl disp hp
    Mazda RX4 21.0 6 160 110
    Mazda RX4 Wag 21.0 6 160 110
    Datsun 710 22.8 4 108 93
    Hornet 4 Drive 21.4 6 258 110
    Hornet Sportabout 18.7 8 360 175

    See the knitr documentation for additional options.

    Want to get fancier? Use kableExtra!

    head(mtcars[1:4], 3) %>%
    kableExtra::kbl()%>%
    kableExtra::kable_material(c("hover", "striped", "condensed"), full_width = F)
    mpg cyl disp hp
    Mazda RX4 21.0 6 160 110
    Mazda RX4 Wag 21.0 6 160 110
    Datsun 710 22.8 4 108 93

    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.

    `

    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.

    Animation GIF

    `

    And finally, you can add gifs!

    `

    References

    Hollway, J. (2021). iheiddown: A package for writing IHEID documents in RMarkdown. R package version 0.8.0. URL: https://github.com/jhollway/iheiddown.

    `

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

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

    `
    Paused

    Help

    Keyboard shortcuts

    , , Pg Up, k Go to previous slide
    , , Pg Dn, Space, j Go to next slide
    Home Go to first slide
    End Go to last slide
    Number + Return Go to specific slide
    b / m / f Toggle blackout / mirrored / fullscreen mode
    c Clone slideshow
    p Toggle presenter mode
    t Restart the presentation timer
    ?, h Toggle this help
    Esc Back to slideshow