knitr::opts_chunk$set(echo = FALSE)
library(officedown)
library(ggplot2)
library(rvg)
library(ehastyle)

R Markdown

This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

Slide with Bullets

Slide with R Output

summary(cars)

Slide with Table

head(iris)

Slide to the Right

:::::: {.columns} ::: {.column} Use layout='Two Content', ph=officer::ph_location_right() to properly place content :::

::: {.column}

head(cars,10)

::: ::::::

Slide to the left

:::::: {.columns} ::: {.column}

head(cars)

:::

::: {.column} - Left side table ::: ::::::

Slide with SVG Plot

## use dml to make the plot an editable svg in ppt
dml(plot(pressure))

Slide with SVG Ggplot

ggplotObj <- ggplot(mtcars, aes(wt, mpg), col = displ) +
  geom_point()

## pass a ggplot object to dml 
dml(ggobj = ggplotObj)


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