compareJSTOR_dfs: compareJSTOR_dfs

Description Usage Arguments Value Examples

View source: R/tidyJSTOR.R

Description

Creates dataframe or plot with information regarding top bigrams that appear at least for a determined time period in the top.

Usage

1
compareJSTOR_dfs(df1, df2, y, x, legend, comparisonType, YearBounds)

Arguments

df1

A dataframe in the JSTOR_df format (see: JSTOR_df())

df2

A dataframe in the JSTOR_df format (see: JSTOR_df())

y

Determines the size of the ranking being observed for each year

x

Determines the number of times a bigram has to be part of the rank to be included in the dataframe or plot

legend

A vector of charcters to be used as legends matching the number of dfs (2): c("legend1", "legend2")

comparisonType

Which type of caomparison to make. Acceptable entries: "Words", "Bigrams", "Trigrams" and "Journal".

YearBounds

Optional vector with inferior and superior Year bounds for the plot. Ex: c(1970,1990)

Value

A ggplot2 object

Examples

1
compareJSTOR_dfs(dfx, dfk, 4, 4, c("legendx", "legendk", comparisonType = "Journal")

arthurbnetto/tidyJSTOR documentation built on Feb. 13, 2020, 5:22 p.m.