plot_word_freq: Plot the frequency of the most frequent words

Description Usage Arguments Value Author(s) Examples

Description

Input the document-term data_frame, then plot the the frequency of the most frequent words with histogram

Usage

1
plot_word_freq(df, freq_n = 30, q = NULL, display = FALSE)

Arguments

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

Value

A ggplot histogram

Author(s)

Jiacheng He

Examples

1
plot_word_freq(text, freq_n = 30, q = 0.2)

JiachengHe/TextAnalysis documentation built on May 28, 2019, 7:51 a.m.