Vote count:
0
I am working on a sentiment analysis project; have already removed punctuations, numbers etc. and created a term document matrix (tdm). I am trying to build a word cloud with the following code :
m <- as.matrix(tdm)
wordFreq <- sort(rowSums(m), decreasing=TRUE)
set.seed (375)
grayLevels <- gray( (wordFreq+10) / (max(wordFreq)+10))
wordcloud(words=names(wordFreq), freq=wordFreq, min.freq=3,random.order=F, colors=grayLevels)
The output,however, shows the frequency of various words and not the actual words. Can someone help please..
asked 1 min ago
Word Cloud Error
Aucun commentaire:
Enregistrer un commentaire