Hi! Recently I was trying to re-knit an old Rmd with a graph that made use of scale_x_discrete(), but running the same code now seems to yield a different (buggy) plot. In particular, I've isolated the issue to the inclusion of the limit parameter. Whereas two months ago I had no issue, I can't get the original plots today.
What might be my issue here? I'm wondering whether it has to do with a particular version of ggplot2 I'm using (I just reinstalled the latest via install.packages('tidyverse') to my new machine today). Or are there alternative ways to get the plot I'm aiming for?
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: