I am getting below error on running this code, any idea how to fix it?
Code:
library(wordcloud)
par(mfrow=c(3,2))
wordcloud(worst_corpus, min.freq = 100,
max.words = 100,
random.order = FALSE) #create wordcloud
Error:
Error in strwidth(words[i], cex = size[i], ...) : invalid 'cex' value
In addition: Warning messages:
1: In max(freq) : no non-missing arguments to max; returning -Inf
2: In max(freq) : no non-missing arguments to max; returning -Inf