Eliminating NAs from a ggplot

后端 未结 6 969
暖寄归人
暖寄归人 2020-11-30 09:40

Very basic question here as I\'m just starting to use R, but I\'m trying to create a bar plot of factor counts in ggplot2 and when plotting, get 14 little colored blips repr

6条回答
  •  猫巷女王i
    2020-11-30 10:16

    From my point of view this error "Error: Aesthetics must either be length one, or the same length as the data" refers to the argument aes(x,y) I tried the na.omit() and worked just fine to me.

提交回复
热议问题