M6 - Crafting Reports
Learning Goals
In this section we tackle two topics related to how we present our analyses. In the first section on “Crafting Reports”, we examine the components of an RMarkdown document in more depth and explore more advanced techniques for formatting your documents to make more professional and informative PDFs via the knitting process. Then, in the second section, we examine how RStudio & RMarkdown can help make interactive documents, often referred to as dashboards. Both of these sections will be helpful in your course projects as you craft your deliverables.
Crafting Reports
- Describe the purpose of using R Markdown as a communication and workflow tool
- Incorporate Markdown syntax into documents
- Communicate the process and findings of an analysis session in the style of a report
Data Dashboards
- Describe what a data dashboard is and how it’s different than a knitted R Markdown report
- Run your own R/Shiny data dashboard app using R code
- Identify the key components of an R/Shiny app script and how they work together
Recordings
- Crafting Reports: R, R Studio and R Markdown
- Crafting Reports: Working with YAML
- Crafting Reports: The Knitting Process
- Crafting Reports: Working with Code Chunks
- Crafting Reports: Working with Figures
- Crafting Reports: Working with Markdown
- Crafting Reports: Tables with Kable
- Crafting Reports: Cleaning up for Knitting
- Interactive Rmarkdown: Writing plotting code using variables
- Interactive Rmarkdown: Introducing Widgets
- Interactive Rmarkdown: Plotting with Interactive Widgets
- Dashboards: What is a data dashboard
- Dashboards: Anatomy of an R/Shiny dashboard
Lesson Documents
- 06_Part1_Crafting_Reports.Rmd
- 06Exercise_Markdown.Rmd
- 06Exercise_Markdown_Complete.Rmd (completed version)
- 06_Part2_InteractiveMarkdown.Rmd
- Dashboard documents (unzip into your Lessons folder)
Lab Documents
- None! We will examine the documents used in the recordings and also tackle the assignment…
Assignment
- A06_Crafting_Reports.Rmd
- What your knitted result should look like when knit: A06_Crafting_Reports_KEY.pdf
Additional Resources
- https://www.r-bloggers.com/2022/01/how-to-develop-an-r-shiny-dashboard-in-10-minutes-or-less/
- https://www.r-bloggers.com/2021/02/powerful-dashboard-frameworks-for-r-shiny-apps-in-2021/
- https://www.r-bloggers.com/2021/11/how-to-build-interactive-google-maps-with-r-shiny-a-complete-guide/
- Link to img: download into your lessons folder and unzip
- My published shiny doc: https://johnpfay.shinyapps.io/PeterPaulApp_Full/