wordcloud2: shape covers words

308 views Asked by At

I tried to plot a wordcloud with wordcloud2. As long as I just try to plot the words, everything works fine, but as soon as I try to shape the wordcloud with figPath/wordcloud2::lettercloud something goes wrong. To see the output, I have to run the function twice/reload it (I think this is a bug that has already been reported and discussed)

Additionally in my case it seems like I just plot the shape without the words ...

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")

enter image description here

0

There are 0 answers