Rita ordmoln

Introduktion till textanalys i R

Maham Faisal Khan

Senior Data Science Content Developer

Använda wordcloud()

library(wordcloud)

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

Introduktion till textanalys i R

Fast storlek och slumpmässiga startpunkter

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

Introduktion till textanalys i R

Antal ord i molnet

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

Introduktion till textanalys i R

Använda färger

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

Introduktion till textanalys i R

Nu kör vi en övning!

Introduktion till textanalys i R

Preparing Video For Download...