R presentation - UoN

34
Take it easy with markdown Lukasz K Bonenberg [email protected] @LKBLab 1

Transcript of R presentation - UoN

Page 1: R presentation - UoN

Take it easy with markdown

Lukasz K Bonenberg

[email protected]@LKBLab

1

Page 2: R presentation - UoN

Outline

Introduction

Re-framing the question

Tools

Some downsides

Let’s talk about this

Demo time

Summary

2

Page 3: R presentation - UoN

Introduction

3

Page 4: R presentation - UoN

Questionnaire results

Figure 1: http: // bit. ly/ RMeetupNottingham

• Most interest in:• general understanding• making presentation + report

• more RStudio users than Microsoft Office• git and Markdown more popular than Latex or Beamer• More RMarkdown users than Markdown ! 4

Page 5: R presentation - UoN

Latex vs Word

Figure 2: Word or Latex5

Page 6: R presentation - UoN

Latex perception

Figure 3: Complex but worth it6

Page 7: R presentation - UoN

Microsoft Office perception

Figure 4: An Efficiency Comparison of Document Preparation SystemsUsed in Academic Research and Development 7

Page 8: R presentation - UoN

Re-framing the question

8

Page 9: R presentation - UoN

Change

• Change for the sake of change is rarely a sensible use of time.• Tools have to fit the purpose.

9

Page 10: R presentation - UoN

Does content matters?

Figure 5: Content is king

10

Page 11: R presentation - UoN

Sum of all parts

Figure 6: Complexity vs time spend

11

Page 12: R presentation - UoN

Who send what?

Figure 7: Entropy builds up12

Page 13: R presentation - UoN

Which is my latest copy?

• report_01.doc• report_02.doc• report_03_revByJim.doc• report_04_changes.doc• report_05_final.doc• report_05_finalFinal.doc• report_05_finalFinal_FINAL.doc• report_05_finalFinal_FINAL_send.doc

13

Page 14: R presentation - UoN

Social aspect

Figure 8: https://rpubs.com/ykashou92/eq_wmap

• Hawkers in Singapore• interactive plots

14

Page 15: R presentation - UoN

Deep Work

Figure 9: http: // calnewport. com/ books/ deep-work/15

Page 16: R presentation - UoN

Big guys open source

Figure 1016

Page 17: R presentation - UoN

Tools

17

Page 18: R presentation - UoN

RStudio

Figure 11

18

Page 19: R presentation - UoN

Markdown - Keep it simple

Figure 12: https://daringfireball.net/projects/markdown/19

Page 20: R presentation - UoN

One to rule them all

Figure 13: http: // pandoc. org/

20

Page 21: R presentation - UoN

Control the time

Figure 14: How good is your version control21

Page 22: R presentation - UoN

Some downsides

22

Page 23: R presentation - UoN

Change

• Change for the sake of change is rarely a sensible use of time.• How are we going to interact with others?

• Tools have to fit the purpose.• How many tools do I need to learn?• Who maintain those tools?

23

Page 24: R presentation - UoN

How many tools are we using?

Figure 15: complexity vs effort

24

Page 25: R presentation - UoN

Markdown - its too flexible

Figure 16: Spoil for choice?25

Page 26: R presentation - UoN

Let’s talk about this

26

Page 27: R presentation - UoN

Demo time

27

Page 28: R presentation - UoN

Report example

pandoc 01Markdown.md --output=01Markdown.htmlpandoc 02_Rmd+references.rmd --output=02_Rmd+ref.htmlpandoc 02_Rmd+references.rmd --output=02_Rmd+ref.docxpandoc 03_FinalReport.rmd --output= 03_FinalRep.docx

28

Page 29: R presentation - UoN

Presentation example

pandoc -t beamer presentation.md -o simple.pdfpandoc --slide-level 2 -H head.tex -B body.tex -t beamerpresentation.md -V theme:metropolis -o Rpresentation.pdf

29

Page 30: R presentation - UoN

Future work

• running R code inside presentation• converting back from MSc Office - seamless integration• animations + interactive content• Adding Excel• Markdown to PowerPoint

30

Page 31: R presentation - UoN

Summary

31

Page 32: R presentation - UoN

Take away notes

• Markdown is one of 20-80 tools - it will cover most of problemswith small effort

• content beats visuals• set of small dedicated tools allow better flexibility and low

entropy

32

Page 34: R presentation - UoN

Thank you

Can you fill in the feedback at http://bit.ly/LKBFeedback?

[email protected]

@LKBLab

34