I have a table like this:
FirstName SecondName Amount Lorenzo Perone 100 Mario Rossi 25 ... ... ...
I'd like to create a "word cloud" using "Amount" as weight, is it possible using the "word cloud" tool? Thanks.
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.Sign up to join this community
The solution is a slight varient of this R-Bloggers tutorial. Feel free to have a look there for further formatting.
library(wordcloud) words = c('Paolo Gentiloni', 'Matteo Renzi', 'Enrico Letta', 'Mario Monti', 'Silvio Berlusconi', 'Romano Prodi') freq = c(100, 25, 50, 70, 95, 20) wordcloud(words = words, freq = freq, min.freq = 1, max.words=200, random.order=FALSE, rot.per=0.35, colors=brewer.pal(8, "Dark2"))
Btw. @Lorenzo Perone: Where the ones listed Italien names? I was not sure about that.