compareDocs: Function compareDocs

compareDocsR Documentation

Function compareDocs

Description

Plots difference between two documents as a modified dotchart.

Usage

compareDocs(
  a = NULL,
  b = NULL,
  relative = T,
  vertLine = T,
  horizLines = T,
  max = 40,
  main = "Comparison of Word Frequencies",
  pch = 16,
  cex = 0.7,
  ...
)

Arguments

a

Character value.

b

Character value.

relative

Logical value. Defaults to T.

vertLine

Logical value specifying whether to plot a vertical line at x=0. Defaults to T.

horizLines

Logical value specifying whether to plot horizontal lines between each point and the y axis. Defaults to T.

max

Numeric value indicating the maximum number of word frequencies to be displayed. Defaults to 40.

main

Character value specifying the plot's title. Defaults to "Comparison of Word Frequencies"

pch

Numeric element speccifying the symbol to represent points. Defaults to 16

cex

Numeric value indicating the text size. Defaults to .7.

Details

Plots difference between two documents as a modified dotchart. Returns matrix with relative frequencies and differences between documents a and b.

Examples

compareDocs("This is document 1","this is another document")

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.