Communicate your results with Rmarkdown

Otho Mantegazza

2019-05-08

Tools for communcation

Rmarkdown, knitr, Shiny.

hex-rmarkdown hex-rmarkdown hex-rmarkdown

Why?

🙆 a header (metadata)

📝 some text (explain results)

💻 some code (produce results)

How?

Code

hex-rmarkdown

Generate your results, plots.

text

hex-rmarkdown

Explain our results and the reasoning behind them.

Markdown

Markdown

Markdown - Resources

Let’s Try Some

In the rmarkdown file:

  • YAML header with metadata.
  • code is knitted in text with ```{language}
  • macheck the options for code output, for figures, tables etc.,
  • Also inline code.

🌻🌞 Check the examples/rmarkdown folder to see how to style the output 🌞🌻

Slides

These slides are made with Rmarkdown and revealjs, you can find the source code here

R code is evaluated:

##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##    1.00    3.25    5.50    5.50    7.75   10.00

You can include maps 🌍.

🍃🍂This example is from the leaflet package.🍁🍀
⬇️ The output is below. ⬇️

More Books, Blogs, dashboards?

hex-bookdown hex-blogdown hex-r2d3

Full process

source: Rstudio

Resources

Interested in Tidytuesday?

Thank you!