s="va">tf_idf</span>, max.words <span class="op">=</span> <span class="fl">40</span><span class="op">)</span><span class="op">)</span></span></code></pre></div>
<p>I use term-frequency inverse-document frequency (tf-idf) to weight
the importance of the words in the wordcloud. If we used pure
frequencies, the wordcloud would largely consist of words conveying
little meaning (“the”, “and”, …).</p>
<p>This is an extremely basic application of the <code>eurlex</code>
package. Much more sophisticated m