Description Usage Arguments Value Author(s) Examples
Input the document-term data_frame, then plot the the frequency of the most frequent words with histogram
1 | plot_word_freq(df, freq_n = 30, q = NULL, display = FALSE)
|
df |
The document-term data_frame output from create_DTM |
freq_n |
A numeric specifying how many most frequent words we want to display. Defalut to 30. |
q |
A numeric specifying the quantile of tf-idf to remove words. If default to NULL, then don't remove |
A ggplot histogram
Jiacheng He
1 | plot_word_freq(text, freq_n = 30, q = 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.