Histogram nuances

Buone pratiche di visualizzazione in R

Nick Strayer

Instructor

Histogram positives

  • Intuitive
  • Interpretable

Buone pratiche di visualizzazione in R

Histogram negatives

  • Sensitive to bin placements
  • Iffy with small amounts of data

Buone pratiche di visualizzazione in R

Adjusting number of bins

  • Exact same data
  • Varying bin-numbers (geom_histogram(bins = n))) from 10 to 55

Buone pratiche di visualizzazione in R

Bin number best practices

  • If length(data$x) > 150bins = 100
  • Otherwise, play around to get a good sense of the data

Buone pratiche di visualizzazione in R

Reality

  • Beware of digit preferences
  • Data from automated sources are less likely to be problematic

Buone pratiche di visualizzazione in R

Let's improve some histograms!

Buone pratiche di visualizzazione in R

Preparing Video For Download...