Multiple WordCloud2 html plot in R markdown

Hi everyone. I loaded wordcloud2 function with 2 datasets in each time in R markdown. The code were like

wordcloud2(bigram1, size = 1, minSize = 0, gridSize =  1,
           fontFamily = 'Segoe UI', fontWeight = 'bold',
           color = 'random-dark', backgroundColor = "lightblue",
           minRotation = -pi/4, maxRotation = pi/4, shuffle = TRUE,
           rotateRatio = 0.8, shape = 'triangle', ellipticity = 0.65,
           widgetsize = NULL, figPath = NULL, hoverFunction = NULL)

wordcloud2(df, size = 1, minSize = 0, gridSize =  0,
           fontFamily = 'Segoe UI', fontWeight = 'bold',
           color = 'random-dark', backgroundColor = "lightblue",
           minRotation = -pi/4, maxRotation = pi/4, shuffle = TRUE,
           rotateRatio = 0.8, shape = 'triangle', ellipticity = 0.65,
           widgetsize = NULL, figPath = NULL, hoverFunction = NULL)

Then I chose the "Run all chunks below", the R markdown works well. But It's not the same when I click the knit R markdown into html.

I am looking forward to hearing from you

Thanks and Best Regards

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.