我看到了类似的帖子,但解决方案没有帮助。
尝试将德克萨斯州的photo与词云一起使用。但是,它不起作用....
word_cloud <- structure(list(word = c("climate", "change", "global", "warming",
"energy", "carbon", "u.s", "president", "emissions", "people",
"obama", "gas", "world", "report", "power", "water", "time",
"scientists", "study", "national"), count = c(2474L, 1655L, 944L,
815L, 755L, 635L, 585L, 570L, 564L, 556L, 522L, 484L, 475L, 462L,
435L, 398L, 375L, 354L, 352L, 341L)), row.names = c(NA, -20L), class = c("tbl_df",
"tbl", "data.frame"))
figPath <- "tex4.png" #TODO
wordcloud2(word_cloud, figPath = figPath, size = 1.5,color='skyblue')