Aesthetics must either be length one, or the same length as the dataProblems

后端 未结 5 573
[愿得一人]
[愿得一人] 2020-12-05 04:09

I would like to make a plot with X values as a subset of the measurement and Y-values as another subset of the measured data.

In the example as below, I have 4 produ

5条回答
  •  庸人自扰
    2020-12-05 04:53

    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.

提交回复
热议问题