class: center, middle
# 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
.center[
.polaroid[]
James Hollway (Instructor) ]
.pull-left[
.polaroid[]
James Hollway (Instructor) ]
.pull-right[ I can add paragraphs of extra information...
or a bullet list...
or a numbered list...
class: split-four, center
.column[.pull-down[
Prof. Smith
Principal Investigator
]]
.column[.pull-down[
Dr. Jones
Doctoral Research Assistant
]]
.column[.pull-down[
Ms. Dupont
Research Assistant
]]
.column[.pull-down[
Mr. Dupond
Research Assistant
]]
--
By using double dashes --
to separate lines of text or code,
we can build a slide up gradually.
--
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
Adding the class highlight-last-item
allows you to highlight the last element
of a progressive list.
--
--
iheid-xaringan-style.css
file and search for
"progressive slides". This feature was based on this great article.class: show-only-last-code-result
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
.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
.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.]
library(leaflet) leaflet() %>% addTiles() %>% setView(6.1435, 46.2210, zoom = 17)
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 ]
.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. ]
library(DT) DT::datatable(head(mtcars, 10), fillContainer = FALSE, options = list(pageLength = 4))
See the DT package documentation for the additional options.
Embed tweets in your presentation!
.center2[
]You're doing it right if you get frustrated: if you're not frustrated, you're (probably) not stretching yourself mentally
— Hadley Wickham (@hadleywickham) 11. Februar 2015
class: animateanimated, animateslideInRight
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[]
background-image: url(https://media1.giphy.com/media/xT0BKiK5sOCVdBUhiM/giphy.gif) background-size: contain
class: inverse iheid-red center middle with-logo logo-iheid_BW
Made with {iheiddown}
, the R-package for IHEID publications
r Cite(myBib, "iheiddown")
.
RefManageR::PrintBibliography(myBib)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.