compareDocs | R Documentation |
Plots difference between two documents as a modified dotchart.
compareDocs( a = NULL, b = NULL, relative = T, vertLine = T, horizLines = T, max = 40, main = "Comparison of Word Frequencies", pch = 16, cex = 0.7, ... )
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. |
Plots difference between two documents as a modified dotchart. Returns matrix with relative frequencies and differences between documents a and b.
compareDocs("This is document 1","this is another document")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.