MulaiMulai sekarang secara gratis

Adding a splash of color

What about just the complaints? And let's add some color. Red seems appropriate. The wordcloud package has been loaded along with tidy_twitter.

Latihan ini adalah bagian dari kursus

Introduction to Text Analysis in R

Lihat Kursus

Petunjuk latihan

  • Compute the word counts only for the complaints and assign it to word_counts.
  • Create a complaint word cloud of the top 50 terms, colored red.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

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

# Create a complaint word cloud of the top 50 terms, colored red
___(
  ___, 
  ___, 
  ___, 
  ___
)
Edit dan Jalankan Kode