Untitled

knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE)
library(officedown)
library(ggplot2)
library(rvg)

Table

head(cars)
head(iris)

Slide with Plot

dml(plot(pressure))

Slide with ggplot

mygg <- ggplot(pressure, aes(x = temperature, y = pressure)) +
  geom_point()
dml(ggobj = mygg)

Slide with ggplot

mygg <- ggplot(pressure, aes(x = temperature, y = pressure)) +
  geom_point()
dml(ggobj = mygg)

ggplot in left column

mygg <- ggplot(pressure, aes(x = temperature, y = pressure)) +
  geom_point()
dml(ggobj = mygg)

ggplot in right column

mygg <- ggplot(pressure, aes(x = temperature, y = pressure)) +
  geom_point()
dml(ggobj = mygg)

ggplot in both columns

dml(ggobj = mygg)
dml(ggobj = mygg)

custom plot locations

dml(plot(pressure))
dml(plot(pressure))

Non-editable plot

dml(plot(pressure), editable = FALSE)


Try the officedown package in your browser

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

officedown documentation built on April 6, 2021, 1:06 a.m.