title: Error in strwidth(words[i], cex = size[i], ...) : invalid 'cex' value
body: <p>I am using the tm and wordcloud packages. I am trying to make a word cloud from a DTM. Here is the code:</p>
  
  <pre><code>ocs &lt;- Corpus(VectorSource(text))
  trans &lt;- content_transformer(function(x, pattern) gsub(pattern," ",x))
  Docs &lt;- tm_map(Docs, trans, "/")
  Docs &lt;- tm_map(Docs, trans, "@")
  Docs &lt;- tm_map(Docs, trans, "//|")
  Docs &lt;- tm_map(Docs, content_transformer(tolower))
  Docs &lt;- tm_map(Docs, removeNumbers)
  Docs &lt;- tm_map(Docs, removeWords, stopwords("english"))
  Docs &lt;- tm_map(Docs, removePunctuation)
  Docs &lt;- tm_map(Docs, stripWhitespace)
  Docs &lt;- tm_map(Docs, stemDocument)
  Docs &lt;- tm_map(Docs, wordLength)
  dtm &lt;- TermDocumentMatrix(Docs)
  mat &lt;- as.matrix(dtm)
  v &lt;- sort(rowSums(mat), decreasing = TRUE)
  Data &lt;- data.frame(word = names(v), freq = v)
  set.seed(1056)
  wordcloud(words = Data$word, freq = Data$freq, min.freq = 1,
        max.words = 200, random.order = FALSE, rot.per = 0.35,
        colors = brewer.pal(8,"Dark2"))
  </code></pre>
  
  <p>Error found : Error in strwidth(words[i], cex = size[i], ...) : invalid 'cex' value. Can somebody tell me a fix for the error?</p>