plotzipf: Plot rank versus frequency

plotzipfR Documentation

Plot rank versus frequency

Description

Plot the frequency of words in a document agains the ranks of those words. It also plot the Zipf law.

Usage

plotzipf(corpus)

Arguments

corpus

The corpus of documents (a vector of characters) or the vocabulary of the documents (result of function getvocab).

See Also

plotcloud, getvocab

Examples

## Not run: 
text = loadtext ("http://mattmahoney.net/dc/text8.zip")
plotzipf (text)
vocab = getvocab (text, mincount = 1, lang = NULL)
plotzipf (vocab)

## End(Not run)

fdm2id documentation built on July 9, 2023, 6:05 p.m.

Related to plotzipf in fdm2id...