Bars and dots: point data

Praktik Terbaik Visualisasi di R

Nick Strayer

Instructor

What is point data?

  • One categorical axis, one numeric
  • Counts, averages, rates, etc.

Praktik Terbaik Visualisasi di R

A single observation

  • Represents a singular observation of something
  • E.g. population of a state, rate of cell growth

Praktik Terbaik Visualisasi di R

The bar chart

  • Popular
  • Simple
  • Accurate
ggplot(who_disease) +
  geom_col(aes(x = disease, y = cases))
Praktik Terbaik Visualisasi di R

Praktik Terbaik Visualisasi di R

Not always the best

  • Bar charts are frequently used when other charts are more appropriate
  • A few principles can be followed to help avoid this

Praktik Terbaik Visualisasi di R

The stacking principle

  • Should be used for data that represents a meaningful quantity
  • Ask: 'Could I stack what I'm measuring to make the bars?'

Praktik Terbaik Visualisasi di R

Why quantities?

"...viewers judge points that fall within the bar as being more likely than points equidistant from the mean, but outside the bar..."

               - Scholl & Newman, 2012

 

  • People view the bar as 'containing' the values below top
  • Quantities fulfill this assumption

Praktik Terbaik Visualisasi di R

A big deal?

  • Not really...
  • ... but alternatives are not worse, so they may as well be used

 

Praktik Terbaik Visualisasi di R

Let's practice!

Praktik Terbaik Visualisasi di R

Preparing Video For Download...