Woordwolken plotten

Introductie tot tekstanalyse in R

Maham Faisal Khan

Senior Data Science Content Developer

wordcloud() gebruiken

library(wordcloud)

word_counts <- tidy_review %>% count(word)
wordcloud( words = word_counts$word, freq = word_counts$n, max.words = 30 )

Introductie tot tekstanalyse in R

Vaste grootte en willekeurige startpunten

wordcloud(
  words = word_counts$word, 
  freq = word_counts$n, 
  max.words = 30
)

Introductie tot tekstanalyse in R

Aantal woorden in de wolk

wordcloud(
  words = word_counts$word, 
  freq = word_counts$n, 
  max.words = 70
)

Introductie tot tekstanalyse in R

Kleuren gebruiken

wordcloud(
  words = word_counts$word, 
  freq = word_counts$n, 
  max.words = 30,
  colors = "blue"
)

Introductie tot tekstanalyse in R

Laten we oefenen!

Introductie tot tekstanalyse in R

Preparing Video For Download...