fst_freq_plot: Make Top Words plot

View source: R/02_data_exploration.R

fst_freq_plotR Documentation

Make Top Words plot

Description

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)
fst_freq_plot(top_words, number = 15, name = "Bullying")

finnsurveytext documentation built on April 4, 2025, 5:07 a.m.