Lchiffon / wordcloud2

R interface to wordcloud for data visualization.
397 stars 113 forks source link

Not showing words when using an image with figpath #80

Open Zml99 opened 1 year ago

Zml99 commented 1 year ago

Wordcloud2 it's not showing the words on top of custom images when using figpath. https://drive.google.com/file/d/1TCprm9I0fatD868SolA0EO9jemIDOa9S/view?usp=share_link

My code:

library(wordcloud2)
library(tidyverse)

data =  read_csv("pokemon.csv")
#View(data)

pokemons = data %>% 
  filter(Generation==1) %>% 
  select(Name, Liked)

wordcloud2(data=pokemons, size = 0.2, color=data$Colors, figPath = "./pikachu_white.png")

Image: pikachu_white

200170529 commented 1 year ago

I am having the same issue, did you ever solve this?

Zml99 commented 1 year ago

Actually, I uninstalled the library and install it again. After that you just need to run the code a couple of times until the image appears.