library (jiebaR)
The library (jiebaRD)
The library (wordcloud2)
The rm ls (list=())
Setwd (" C:/Users/Mr. Yao/Desktop/")
Engine=worker ()
Segment (" data. TXT ", engine)
Word & lt; - scan (". The data segment. The 2019-10-06 _16_59_59. TXT ", sep="\ n", what=', encoding="utf-8")
Seg & lt; - qseg [word]
Seg & lt; - seg [nchar (seg) & gt; 1)
Seg & lt; - the table (seg)
Seg & lt; - seg [! Grepl (' [0-9] + 'names (seg)]
Length (seg)
Seg<- sort (seg, decreasing=T)
Wordcloud2 (seg, size=1, figPath="C:/Users/Mr. Yao/Documents/R/win - 3.6/wordcloud2/examples/library/t.p ng", color='blue')
# wordcloud2 (seg, size=1, color='black')
R language wordcloud2 output the original pictures instead of cloud picture word cloud, don't know how to return a responsibility, give advice or comments, thank you.
CodePudding user response:
Want to ask is what problem did you find on the building Lord, I have been scratching his head...