A Tip to Debug ggplot2

January 11, 2019

Since the tidyverse developer day is near, I share my very very secret technique to debug ggplot2. Though this is a very small thing, hope this helps someone a bit. ggplot2 is unbreakable! You might want to debug() the methods of Geoms or Stats. debug(GeomPoint$draw_panel) But, this is not effective because the geom_point() generates different instances, so their draw_panel are all different objects (c.f. R6 classes have debug method for this). ... Read more