tctcab
是的。这个例子可行。修改shape参数,仍然可行。
但是,修改figPath就不好使了。或者,用letterCloud函数也不可行。例子见下:
library(webshot)
library(htmlwidgets)
library(wordcloud2)
# test figPath
figPath = system.file("examples/t.png",package = "wordcloud2")
hw=wordcloud2(demoFreq, figPath = figPath, size = 3)
# test letterCloud
hw = letterCloud(demoFreq,word = "R", color = "random-light",
backgroundColor = "black",size =1.5)
saveWidget(hw,"1.html",selfcontained = F)
webshot::webshot("1.html","1.png",vwidth = 3000, vheight = 3000, delay =10)