text class.negative class.positive class
<fctr> <dbl> <dbl> <dbl>
firmly believe... 11 24 3
when i thought... 3 3 4
fans of david... 11 24 12
just watched... 3 5 9
i was so looking... 16 9 10
나는 결과를 시각화하고 단지 ggplot로 작업하는 방법을 배우기 시작하고, "긍정적 인"보여 드리고자합니다
, 데이터 프레임은 다음과 같습니다있다, "부정적"및 "총점". 그러나 분명히 나는 단순히 내가이 http://joxi.ru/vAWvKx5HeXp72W 같은 유사한 차트를 만드는 방법을 궁금해
ggplot(data=..., aes(x=..., y=..., fill=...)) + geom_bar(stat="identity",position = 'stack') + ggtitle('Sentimental Analysis')
로 넣지 수있는 팁/조언에 감사드립니다!
'reshape2' 패키지를 사용해 보시고 데이터를 녹여보십시오 :'dfm <- melt (df, id.vars = 'text')', plot. – Shape