Description Usage Arguments Value Examples
Function to plot changes in the relative frequency of a bigram over time. The relative frequency is the frequency of the bigram in a document divided by the total number of bigrams in a document. For use with JSTOR's Data for Research datasets (http://dfr.jstor.org/).
1 | JSTOR_1bigram(unpack2grams, bigram, span = 0.4)
|
unpack2grams |
object returned by the function JSTOR_unpack2grams. |
bigram |
two words, surrounded by standard quote marks, or a vector of bigrams. |
span |
span of the lowess line (controls the degree of smoothing). Default is 0.4 |
Returns a ggplot object with publication year on the horizontal axis and log relative frequency on the vertical axis. Each point represents a single document.
1 2 | ## JSTOR_1bigram(unpack2grams, "pirate booty")
## JSTOR_1bigram(unpack2grams, c("treasure chest", "musket balls", "jolly roger"), span = 0.7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.