我能够在PDF文件上创建wordcloud。从那个词云中,我选出了最大的词并找到了同事。我现在想做的是根据员工创建另一个wordcloud。
所以我的目标是创建一个词云,其中dvcsl为中心,节点/ omgeving / etc围绕着它。有人知道如何帮助我吗?
答案 0 :(得分:0)
您想要这样的东西吗?
#Creating sample data
df<-data.frame(Name=c("node","omgeving","drie","elkaar","losse","dvcsl ","csl"),
Freq=c(0.59,0.52,0.4,0.37,0.36,2.0,0.35)) #'dvcsl' should have highest Frequency
#Order rows in decreasing order of frequency
df2<-df[with(df,order(-Freq)),]
row.names(df2)<-df2$Name
#Create word cloud with 'wordcloud2' package
wordcloud2(df2, shape = "circle")