Learn R Programming

koRpus (version 0.10-2)

plot: Plot method for objects of class kRp.tagged

Description

Plot method for S4 objects of class kRp.tagged-class, plots the frequencies of tagged word classes.

Usage

plot(x, y, ...)

# S4 method for kRp.tagged,missing plot(x, what = "wclass", ...)

Arguments

x

An object of class kRp.tagged

y

From the generic plot function, ignored for koRpus class objects.

...

Any other argument suitable for plot()

what

Character string, valid options are:

"wclass":

Barplot of distribution of word classes

"letters":

Line plot of distribution of word length in letters

See Also

kRp.tagged-class

Examples

Run this code
# NOT RUN {
tagged.results <- treetag("~/my.data/sample_text.txt", treetagger="manual", lang="en",
   TT.options=list(path="~/bin/treetagger", preset="en"))
plot(tagged.results)
# }

Run the code above in your browser using DataLab