0

我试图用wordcloud2. 只要我尝试绘制单词,一切正常,但是一旦我尝试使用figPath/来塑造 wordcloudwordcloud2::lettercloud就会出现问题。要查看输出,我必须运行该函数两次/重新加载它(我认为这是一个已经报告和讨论的错误)

此外,在我的情况下,我似乎只是在没有文字的情况下绘制形状......

dat <- dplyr::tibble(word=c("A","B","C","D"),
                     n=c(10,1,50,12))
# works fine
wordcloud2::wordcloud2(dat)
# here I just see the shape
wordcloud2::wordcloud2(dat,figPath="data/test_shape.jpg")
# here I just see the letter
wordcloud2::letterCloud(dat,word="R")

在此处输入图像描述

4

0 回答 0