0
아래의 코드는 작동하지만 반짝 반짝 빛나고 있습니다.미학은 길이가 1이거나 데이터 (10)와 같아야합니다. x, 채우기 r 반짝임
코드 :
ggplot(df_score) +
geom_bar(aes(x=emotion, y=..count.., fill=hashTag),position = "dodge")
데이터 :
score hashTag
1 Neutral hash1
2 Neutral hash1
3 Positive hash1
4 Neutral hash1
5 Neutral hash1
6 Negative hash2
오류 :
Aesthetics must be either length 1 or the same as the data (10): x, fill
감사합니다 ... 당신은 당신의 코드에서 '인쇄'를 추가했습니다
, 당신의 코드가'AES해야한다 (X = score..', 샘플 dataframe에서'emotion'라는 어떤 변수가 없기 때문에 또한, 'ggplot2' 코드가 잘 작동하고 코드의'반짝 '부분에 문제가있는 경우 질문에 포함시켜야합니다. – Sumedh
감사합니다. 나는 아주 나쁜 실수를 저질 렀습니다. – anindya