word.Assocs: Time series plot of terms associated with a specified word.

Description Usage Arguments Details Value Examples

Description

Create a time series line plot of words associated with a specified keyword. Words are associated down to the defined correlation limit. Terms must be a character vector containing no spaces.

Usage

1
word.Assocs(data.td, term, corlimit)

Arguments

data.td

A tidy dataset

term

A user defined term, or vector of terms.

corlimit

A user defined numeric correlation limit between 0 and 1

Details

This function first identifies each document which contains the user specified keyword and omits all those which do not. The function next finds all words correlated with the user specified keyword down to the user defined correlation limit (corlimit). With the correlated words now identified, the function identifies dates listed in the date column and sums the number of documents associated with the identified keyword and all other correlated words, generating a line plot to represent the findings for each. These line plots are then layered on top of each other for comparison purposes. This output is useful in highlighting increases in document production for correlated terms in reference to a specific word. It illustrates how different words are used more/less over the course of time.

Value

Time series line plot of words associated with term

Examples

1
2
3
 
word.Assocs(Articles, "hurricane", .6)
word.Assocs(Articles, c("hurricane","tornado"), .75)

JSmith146/CoRpEx documentation built on May 17, 2019, 10:11 p.m.