Skip to contents

Plots most common words.

Usage

fst_freq_plot(table, number = NULL, name = NULL)

Arguments

table

Output of `fst_freq_table()` or `fst_ngrams_table()`.

number

Optional number of n-grams for the title, default is `NULL`.

name

An optional "name" for the plot to add to title, default is `NULL`.

Value

Plot of top words.

Examples

pf <- c("NOUN", "VERB", "ADJ", "ADV")
top_words <- fst_freq_table(fst_child, number = 15, pos_filter = pf)
#> Note:
#>  Words with equal occurrence are presented in alphabetical order. 
#>  By default, words are presented in order to the `number` cutoff word. 
#>  This means that equally-occurring later-alphabetically words beyond the cutoff word will not be displayed.
#> 
fst_freq_plot(top_words, number = 15, name = "Bullying")