~/talk

Boxplots: a case study in debugging and perseverance

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [data-visualization, testing]
slides:none on file

Bug: overlapping boxes when varwidth = TRUE caused group dodge to fail because collide groups by xmin and misses boxes with different xmin. Fix: implement a replacement placement/dodging algorithm that sees all boxes, compares start and end points to detect overlap, scales consistently for continuous and categorical x, and adds tests. Result fixes pull request #2196, generalizes to bars and rectangles, still fails for violins/dotplots and took about three weeks of work.

AI-written summary · about

  1. 0:00Start
  2. 0:53When I try to produce boxplots with colours depending on a categorical variable, these appear overlapping if varwidth is set to TRUE
  3. 2:16How do I fix it? How do I know when I'm done?
  4. 11:45Doesn't work for continuous x axes
  5. 13:54Can we extend to bars? Arbitrary rectangles? Can we solve other open issues?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.