Lecture 25
Duke University
STA 199 - Fall 2023
2023-11-21
– Exam-2 is over :)
– Clone ae-25
HW-6 - Statistics Experience
After break:
– Peer Review Lab
– Final Report
– Presentation
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
– 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
– 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
– 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!
– scale_x_discrete(guide=guide_axis(n.dodge=2))
– 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