開始使用免費開始

加點色彩

那只看抱怨的內容呢?再加點顏色吧。紅色應該很合適。已載入 wordcloud 套件與 tidy_twitter

本練習屬於課程

R 文字分析入門

檢視課程

練習說明

  • 只針對抱怨貼文計算詞頻,並指定給 word_counts
  • 建立一個僅含前 50 個詞彙的抱怨文字雲,並設定為紅色。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Compute complaint word counts and assign to word_counts
word_counts <- ___ %>% 
  ___(___) %>% 
  ___(___)

# Create a complaint word cloud of the top 50 terms, colored red
___(
  ___, 
  ___, 
  ___, 
  ___
)
編輯並執行程式碼