Session Objectives and Transferable Skills

  • Understand how to produce basic presentations using Rmarkdown through IOSlides
  • Understand how to import existing data or visualizations to presentations
  • Understand how to apply pre-built themes to presentations
  • Understand how to present produced presentations through IOSlides
  • Programming Presentations in R & Rmarkdown,
  • Presenting using Rmarkdown through IOSlides & Beamer

Schedule

  • Introduction (5 minutes)
  • Part 1 (35 minutes)
    • Getting started with Rmarkdown
    • Presentation Metadata
    • Creating Slides 1
  • Break (10 minutes)
  • Part 2 (35 minutes)
    • Creating Slides 2
    • Slide Metadata
    • Slide Themes
    • Exporting Presentations

Introduction

Microsoft Powerpoint

  • Premium Service

  • Manual Development

  • Code, Results and Visualizations must be copied manually

  • Simple & Straight forward

  • Easy implementation of fancy transitions / animations

Rmarkdown

  • Free / Open Source

  • Development can be automated

  • Code, Results and Visualizations can be automatically inserted

  • Steep Learning Curve

  • Implementation of transitions / animations is more complex

Part 1

Getting Started

File -> New File -> R Markdown

Overall Metadata

R Markdown Presentation Metadata

  • larger: true

  • smaller: true

  • incremental: true

  • widescreen: true

  • transition: default / slower / faster

  • Text Size Larger
  • Text Size Smaller
  • Display Bullet points one by one
  • Display the presentation in widescreen mode
  • Transition speed, normal, slow or fast

Creating Slides: Overview

R Markdown Slide Definitions

Creating Slides: Text Definitions

  • Bullet Points: -
  • Block Quotes: > -
  • Numbered Lists: 1., 2.
  • Italic Text: * * or _ _
  • Bold Text: ** ** or __ __
  • Strike Through: ~~ ~~
  • In text links: [](<>)
  • In text image: ![](" ")
  • TeX Formula: $ $

Creating Slides: Layouts

Text will be between these <div>

Dual Column Layouts:

  • <div style="float: left; width: 50%;"> followed by </div> containing your text (left column)
  • <div style="float: right; width: 50%;"> followed by </div> containing your text (right column)

Center Your Text

  • <div class="centered"> followed by </div>

Colour Your Text

  • <div class="red2"> followed by </div>

Part 2

Creating Slides: Code Chunks

R Markdown Code Chunk

  • include = FALSE - prevents code and results from appearing in the finished file, code is still run.
  • echo = FALSE - prevents code, but not results from appearing in the finished file.
  • message = FALSE - prevents messages, generated by code from appearing in the finished file.
  • warning = FALSE - prevents warnings, generated by code from appearing in the finished file.
  • fig.cap = “…” - adds a caption to a graphical result.
  • fig.height / fig.width = … - Defines figure height / width.

Slide Metadata

Add attributes to slides through {} after the # or ##

  • {.build} Incremental Display (build up slides section by section)
  • {.smaller} Reduced Text Size

Presentation Themes

Exporting Presentations

Export through knitr through knitting the presentation to the desired format.

BE AWARE, some attributes are not always compatible between types!

Presenting with IOSLIDE

  • f: enable fullscreen mode
  • w: toggle widescreen mode
  • o: enable overview mode
  • h: enable code highlight mode
  • p: show presenter notes
  • esc: to exist any of the modes listed