powerTemp = FileAttachment("data/power-temperature-threesites.csv").csv({ typed: true })
Inputs.table(powerTemp)James Goldie
Climate researcher
↓
Data journalist
Do they have specialist training? (In your field, or another?)
What are their wants and worries?
Where will people encounter your work?
How long will they have to consider it?
Did they seek it out?
This is called visual hierarchy.
What did you see first on this slide? What did you see second?
Why?
When all of the elements on your plot look the same, it’s really hard for people to decide what to focus on. Without that focus, it’s difficult for your plot to lead to a conclusion. Instead, you want to vary your plot elements, drawing attention to the most important things first. There are lots of ways to do this: bolding text, making it bigger, using colours, and taking advantage of natural reading direction can all help to establish visual hierarchy.
When all of the elements on your plot look the same, it’s really hard for people to decide what to focus on.
Without that focus, it’s difficult for your plot to lead to a conclusion.
Instead, you want to vary your plot elements, drawing attention to the most important things first.
There are lots of ways to do this:
bolding text
making it bigger
using striking colours…
… or softer colours
taking advantage of natural reading direction
These techniques can all help establish visual hierarchy.


Your data is electricity demand and temperature at 3 inner Melbourne sites:
github.com/jimjam-slam/talk-storytelling-r-quarto/
blob/main/data/power-temperature-threesites.csv
What stories could we tell with this data?
What improvements could we make?
Scrollytelling involves graphics that stick to the screen and and change as the user scrolls.
Closeread is a Quarto extension developed by Andrew Bray
and James Goldie (me!)
(We named it after a New York Times series — the piece in the last slide was from this series!)
Closeread lets you turn a regular Quarto doc into a scrollytelling doc
A Quarto extension is like an R package — it extends Quarto’s abilities.
Install Closeread in the RStudio Terminal by running:
At the top of your Quarto doc, change
format: html → format: closeread-html
Tell Quarto where the scrollytelling starts and stops:
:::{.cr-section}
(scrollytelling stuff goes here!)
:::
Closeread has two components: stickies and triggers.
Things you want to stick on the screen. Give them an ID starting with #cr-.
These make the stickies appear. They work like citations: use the ID of the sticky with an @:
When this text scrolls past, my great figure will appear! @cr-myplot
Here’s a Closeread example where we build a plot up one layer at a time:
closeread.dev/
gallery/demos/
build-up-plots/
How can we use this technique with our electricity and temperature data?
Andrew Bray (my collaborator on Closeread) and I have teamed up with data science company Posit to run the Closeread Prize.
posit.co/blog/closeread-prize-announcement
Entries close Jan 5th
(we just extended the contest!)