knitr::opts_chunk$set(echo = TRUE, fig.height=5, fig.align='center')

class: center, middle

Build dynamic presentations

Author presentations that directly include code

Use markdown to do it


A slide title


Background


Here is some code

library(ggplot2)
library(dplyr)
library(xaringanthemer)  

ggplot2::diamonds %>%
    ggplot(aes(x = cut, y = carat)) +
    geom_violin() +
    #theme_xaringan() + # doesnt work on m1 mac with googlefonts
    coord_flip()

Here is the plot

library(ggplot2)
library(dplyr)
library(xaringanthemer)

ggplot2::diamonds %>%
    ggplot(aes(x = cut, y = carat)) +
    geom_violin() +
    #theme_xaringan() + # doesnt work on m1 mac with googlefonts
    coord_flip()

Two column slide

.left-column[ - Any content - You like - On the left ]

.right-column[

ggplot2::diamonds %>%
    ggplot(aes(x = cut, y = carat)) +
    geom_violin() +
    #theme_xaringan() + # doesnt work on m1 mac with googlefonts
    coord_flip()

]



ecohealthalliance/ehastyle documentation built on Jan. 28, 2023, 12:14 a.m.