如何制作词云图
本节内容:
如何制作词云图
install.packages("wordcloud2") library("wordcloud2") cr = c("明道","朱亚文","胡歌","杨斌","杨幂","明道","胡歌", "胡歌") table(cr) #size大小,shape 词云图的形状 wordcloud2(table(cr),size=.3,shape = "diomand")
如何自定义形状图片:
log <-system.file("examples/t.png",package = "wordcloud2") ##将图片加载到wordcolde的包里面 wordcloud2(table(cr),size=1,figPath = log)