word.hist: word.hist

Description Usage Arguments Value Examples

View source: R/word.hist.R

Description

Given a list of words and frequencies, an integer n, and a boolean indicating whether to print the n values, plot a histogram of top n words.

Usage

1
word.hist(w.freq, n = 20, print.val = FALSE)

Arguments

w.freq

This should be the list of word frequencies (3 frequency functions).

n

This indicates the top x most frequently occuring words that will be graphed

print.val

This indicates whether a list of the top n words should be printed out

Value

a histogram of the top n frequently occuring words in a text (can also return a list of the top n frequently occuring words)

Examples

1
word.hist(w.freq, 50, TRUE,)

lhagopian/WritingStyAnalysis documentation built on May 5, 2019, 12:31 a.m.