視覺化非抱怨內容
現在來把與非抱怨內容相關的字詞計數視覺化。
本練習屬於課程
R 文字分析入門
練習說明
- 只保留非抱怨內容。
- 使用新的
word_counts建立長條圖。 - 將圖表標題設為「Non-Complaint Word Counts」。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
word_counts <- tidy_twitter %>%
# Only keep the non-complaints
___(___) %>%
count(word) %>%
filter(n > 150)
# Create a bar plot using the new word_counts
ggplot(___, aes(___, ___)) +
___() +
coord_flip() +
# Title the plot "Non-Complaint Word Counts"
___(___)