可视化非投诉
现在我们来可视化与非投诉相关的词频统计。
本练习是课程的一部分
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"
___(___)