Wordcloud2 integration with PowerBI - non-numeric argument to binary operator

I'd like to integrate wordcloud2 to PowerBI. I create a freq, word dataset and I use the following. The freq column contains only integers.

wordcloud2(dataset, size = 1.5, color = "green", backgroundColor = "white", gridSize = 5, rotateRatio = 0)

I gave this error message, can I correct it somehow?

Error Message:
R script error.
Error in size * 180/max(dataOut$freq) : non-numeric argument to binary operator
Calls: wordcloud2
Execution halted

Thanks, Andrew

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.