plotzipf | R Documentation |
Plot the frequency of words in a document agains the ranks of those words. It also plot the Zipf law.
plotzipf(corpus)
corpus |
The corpus of documents (a vector of characters) or the vocabulary of the documents (result of function |
plotcloud
, getvocab
## Not run:
text = loadtext ("http://mattmahoney.net/dc/text8.zip")
plotzipf (text)
vocab = getvocab (text, mincount = 1, lang = NULL)
plotzipf (vocab)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.