Learn R Programming

inpdfr (version 0.1.12)

getMostFreqWordCor: Test for correlation between the most frequent words.

Description

Test for correlation between the most frequent words.

Usage

getMostFreqWordCor(
  wordF,
  numWords,
  getPlot = c(TRUE, TRUE),
  getTextSink = TRUE,
  mwidth = 1024,
  mheight = 1024,
  formatType = "png"
)

Value

A list with the correlation matrix and the p-value matrix.

Arguments

wordF

The data.frame containing word occurrences.

numWords

The number of words to be returned.

getPlot

A vector with two logical values. If plots[1]==TRUE, an image of the correlation matrix is saved in the RESULTS directory. If plots[2]==TRUE, the image of the p-value matrix associated with the correlation is saved in the RESULTS directory.

getTextSink

If TRUE, save the correlation matrix and the associated p-values in a text file in the RESULTS directory.

mwidth

The width of the plot in pixels.

mheight

The height of the plot in pixels.

formatType

The format for the output file ("eps", "pdf", "png", "svg", "tiff", "jpeg", "bmp").

Examples

Run this code
data("wordOccuDF")
getMostFreqWordCor(
  wordF = wordOccuDF, 
  numWords = 5, 
  getPlot = c(FALSE, FALSE), 
  getTextSink = FALSE)

Run the code above in your browser using DataLab