SyntaxFix
Write A Post
Hire A Developer
Questions
I encountered this problem because the dataset was filtered wrongly and the resultant data frame was empty. Even the following caused the error to show:
ggplot(df, aes(x="", y = y, fill=grp))
because df was empty.
df