Error: Aesthetics must be either length 1 or the same as the data (2): fill

without having your data, or some dummy data that's similar, it's hard to help. But here's something to try:

Can you run this simplified ggplot version? The error makes me think the issue is with your fill parameter.

ggplot(data = yield2016_drought7, aes_string(x = "Condition", y = "FT")) + 
  geom_boxplot()
3 Likes