Title of my talk template My talk subtitle Willian Vieira, PhD - - PowerPoint PPT Presentation

title of my talk template
SMART_READER_LITE
LIVE PREVIEW

Title of my talk template My talk subtitle Willian Vieira, PhD - - PowerPoint PPT Presentation

Title of my talk template My talk subtitle Willian Vieira, PhD candidate + Collaborators WillVieira/talkTemplate @WillVieira90 Introduction How to setup Content xaringanExtra extensions JS libraries 2 / 30 How to use it? How to use


slide-1
SLIDE 1

Title of my talk template

My talk subtitle

Willian Vieira, PhD candidate + Collaborators

 WillVieira/talkTemplate  @WillVieira90

slide-2
SLIDE 2

Introduction

How to setup Content

xaringanExtra extensions

JS libraries

2 / 30

slide-3
SLIDE 3

How to use it? How to use it?

slide-4
SLIDE 4

Workow

It is recomended to install all (R packages ฀) dependencies:

make install

If you use other R packages for your presentation, add them to the requeriments.yml le

Once dependencies are solved, you can server your presentation on local to be automatically updated while editing:

make server

Finally, publish your nal html presentation with:

make

4 / 30

slide-5
SLIDE 5

Content Content

slide-6
SLIDE 6

Sections

Slides are separeted by :

  • # My slide title

Content here

  • Title sections, like the previous slide, needs to specify the following classes:
  • class: middle, center, inverse

# Title of my section <hr width="100%" align="left" size="0.3" color="orange">hr>

  • You can use one of these classes in any slide if you want to:

Vertical center the content (middle) Horizontal center the content (center) Or inverse the background and text colours (inverse)

6 / 30

slide-7
SLIDE 7

You can simply insert a markdown table:

Tables Are Cool col 1 is left-aligned $1600 col 2 is centered $12 col 3 is right-aligned $1

Or you can use the DT R package for dynamic tables:

DTdatatable(head(cars))

Tables

Show 10 entries Search: Showing 1 to 6 of 6 entries Previous 1 Next speed dist 1 4 2 2 4 10 3 7 4 4 7 22 5 8 16 6 9 10

7 / 30

slide-8
SLIDE 8

Figures

Insert an image:

![](images/model1.svg)

M B T R

8 / 30

slide-9
SLIDE 9

Figures

Scale the size of an image:

![:scale 60%](images/model1.svg)

M B T R

9 / 30

slide-10
SLIDE 10

Figures

Or simply code it:

plot(cars$speed, cars$dist)

10 / 30

slide-11
SLIDE 11

Figures

Use the code chunck options to change the size of a plot :

```{r, fig.width = 4, fig.height = 2.5} plot(cars$speed, cars$dist) ```

You can check a full list of chunck options here

11 / 30

slide-12
SLIDE 12

For left larger columns:

.pullleft1[ Content 1 ] .pullright1[ content 2 ]

Or right larger columns:

.pullleft2[ Content 1 ] .pullright2[ content 2 ]

Columns

50/50 columns can be created with:

.pullleft[ Content 1 ] .pullright[ content 2 ]

12 / 30

slide-13
SLIDE 13

Text position

Instead of using columns, you can dene the content position with: Left aligned

.left[text here]

Center aligned

.left[text here]

Right aligned

.left[text here]

13 / 30

slide-14
SLIDE 14

Text size

And also text size:

.fontX[ Content here ]

Where X can be anything between 10 (

very smal l) and 200 (HUGE) by an increent of 10:

print(seq(10, 200, 10)) # [1] 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 19 # [20] 200

14 / 30

slide-15
SLIDE 15

Animation

Using between lines you can animate

18 / 30

slide-16
SLIDE 16

Math

math expressions can be writen between $$:

$$ \bar{X}=\frac{1}{n}\sum_{i=1}^nX_i $$

LT X

A E

¯ X =

n

i=1

Xi 1 n

19 / 30

slide-17
SLIDE 17

Citation

This macro is just to easily insert text on the bottom of the slide:

.cite[Talluto et al. [2017](https:link) Nat. Ecol. Evol.]

Talluto et al. 2017 Nat. Ecol. Evol. 20 / 30

slide-18
SLIDE 18

Font awesome icons (faic)

![:faic](pagelines)

 Academic icons (acid)

![:acic](orcid)

Icons

You can use both Font awesome and Academicons icons You can also ajust their size with the following argument:

![:faic 2](pagelines)

21 / 30

slide-19
SLIDE 19

฀ ฀ {xaringanExtra}

{xaringanExtra}

slide-20
SLIDE 20

{xaringanExtra}

This awesome R package provides enhancements for xaringan such as Add an overview of your presentation with tile view Make your slides editable Announce slide changes with a subtle tone Animate slide transitions with animate.css Add tabbed panels to slides with panelset Add a logo to all of your slides with logo Use the Tachyons CSS utility toolkit Add a live video feed of your webcam Fit your slides to ll the browser window Add extra CSS styles Take a look in their full documentation here I added some examples in the following slides...

23 / 30

slide-21
SLIDE 21

{xaringanExtra} tile view

Press the letter "o" 😳

24 / 30

slide-22
SLIDE 22

{xaringanExtra} Editable slides

Just use the following class:

.canedit[ ]

What do you think?

  • 25 / 30
slide-23
SLIDE 23

{xaringanExtra} Panelset

Code

x = rnorm(100, 10, 4) y = rnorm(100, 2, 1)

Plot How?

26 / 30

slide-24
SLIDE 24

 libraries libraries

slide-25
SLIDE 25

Gifffer

Gifffer prevents the autoplaying of the animated Gifs Instead of adding a gif with the same syntax of an image (which plays automatically), you can use the giffer JS macro:

![:giffer 80%](images/RCP6_enrich.gif)

Where 80% is the width of the gif

28 / 30

slide-26
SLIDE 26

More ressources

You can check the xaringan presentation (which this template relies on): https://slides.yihui.org/xaringan/#1 And also check all remark.js fonctionalities available in this template: https://remarkjs.com/#1

29 / 30

slide-27
SLIDE 27

Key message here Key message here

Special thanks to Special thanks to Nice people Nice people