'wordcloud2 in R with figPath

I am working on a word cloud shaped by an image on a jpg or png file. I am using R and its wordcloud2 package with figPath option.

Issuing the following command:

wordcloud2(Word_more_freq,figPath = "unicorno.jpg",size = 1.5, color = "skyblue"),

where Word_more_freq is a data frame and its columns are words and freq (words' frequency), sometimes no image is displayed and other times I can just view the image without the words. No error message is raised.

Could you help me please?

Thanks in advance.

Cheers,

Francesco



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source