Customize Quarto Reports

Lecture 25

Dr. Elijah Meyer

Duke University
STA 199 - Fall 2023

2023-11-21

Checklist

– Exam-2 is over :)

– Clone ae-25

What is left?

HW-6 - Statistics Experience

After break:

– Peer Review Lab

– Final Report

– Presentation

Tips for Presenting

More after break:

  • Make text bigger than you think you need

  • Less is more

  • Do not read off your slides

  • Visualizations are effective

  • Tell a story

The presentation

Option 1: Make your slides not in Quarto but make sure they’re available in your Quarto project website

Option 2: Make your slides in Quarto

Tips for Data Visualization

– We’ve used theme() a lot this semester. Recall that theme() can change any non data aestetic of your plot.

– Within theme, you can reference the text and title using the following:

  • axis.text.x

  • axis.text.y

  • axis.title.x

  • axis.title.y

Tips for Data Visualization

– You can set these axis text and title arguments = element_text to control basic aestetic options that can make your graph more effective

  • color

  • size

  • angle

  • hjust

  • vjust

  • and more!

Tips for Data Visualization

scale_x_discrete(guide=guide_axis(n.dodge=2))

Tips for Quarto Document

– Figure sizing: fig-width, fig-height, etc. in code chunks.

– Figure layout: layout-ncol for placing multiple figures in a chunk.

– Further control over figure layout with the patchwork package (today’s AE)

– Chunk options around what makes it in your final report: message, echo, etc.

– Citations

ae-25