plotClass: Plot a Class compared with one file

Description Usage Arguments Value Author(s) See Also Examples

Description

This function plot a Class in two dimensions. At axis X is the words from class, at axis Y the mean from TF-IDF for all file into the class. With you compare this centroid with a file, this function will show a graphics with points and multiplay regression at the same plot.

Usage

1
plotClass(classe = NULL, compare = NULL, all = FALSE, wplot = TRUE, cut = 0, typePlot = "p", multiPlot = FALSE, interact = FALSE)

Arguments

classe

What class you want to plot

compare

If you want to compare one file with that centroid, or the other centroid class, you must write the file name, if NULL nothing will be compare, than the function will show you just centroid plot.

all

If TRUE the function will show you all classes plot. If compare was defined, this file will be compared with all classes.

wplot

Default is TRUE, FALSE if you want to see only correlation between then.

cut

Cut minimum value of mean and TF-IDF

typePlot

This option is to change type of plot, with choose "p, "o" or "l"

multiPlot

The default plot function is all graphics in the same plot. If you want one graphics to plot, change to TRUE.

interact

To interact with plot, this option must be used with R Studio

Value

Correlation

Correlation between mean from centroid compared with TF-IDF from file

Author(s)

Delermando Branquinho Filho

See Also

plotFile()

Examples

1
2
> plotClass(classe = "at2", compare = "004062006at2.txt")
[1] 0.9997294

dbranquinho/zipf documentation built on May 12, 2019, 2:06 p.m.