Word Cloud

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

reasons you should use word clouds to present your text data

1. Word clouds add simplicity and clarity. The most used keywords stand out better in a
word cloud
2. Word clouds are a potent communication tool. They are easy to understand, to be
shared and are impactful
3. Word clouds are visually engaging than a table data

Who is using word clouds ?

 Researchers : for reporting qualitative data


 Marketers : for highlighting the needs and pain points of customers
 Educators : to support essential issues
 Politicians and journalists
 social media sites : to collect, analyze and share user sentiments

install.packages("wordcloud")
library(wordcloud)install.packages("RColorBrewer")
library(RColorBrewer)install.packages("wordcloud2)
library(wordcloud2)
install.packages("tm")
library(tm)

text<- c("Hello", "world!" ,"Cleaning","t


weets","meaningful","corpus","DataMining"
,"datawarehouse")
> text

# Create a corpus
docs <- Corpus(VectorSource(text))

wordcloud(words = df$word, freq = df$freq,


min.freq = 1, max.words=25,
random.order=FALSE, rot.per=0.35,
colors=brewer.pal(8, "Dark2"))

wordcloud2(data=df, size = 0.7, shape =


'pentagon')
………………………………………………………………………………………
library(wordcloud)
> m <- as.matrix(dtm)
> v <- sort(colSums(m),decreasing=TRUE)
> head(v,14)
> words <- names(v)
> d <- data.frame(word=words, freq=v)
> wordcloud(d$word,d$freq,min.freq=50)

You might also like