Quick post - detect and fix this ggplot2 antipattern
Recently one of my coworkers showed me a ggplot and although it is not wrong, it is also not ideal. Here is the TL:DR :
Whenever you find yourself adding multiple geom_* to show different groups, reshape your data
In software engineering there are things called antipatterns, ways of programming that lead you into potential trouble. This is one of them.
I’m not saying it is incorrect, but it might lead you into trouble.
[Read More]