Learn R Programming

quanteda (version 0.9.6-9)

plot.kwic: plot a dispersion plot of key word(s)

Description

Plots a dispersion or "x-ray" plot of a selected word pattern across a text.

Usage

## S3 method for class 'kwic':
plot(x, ...)

Arguments

x
a kwic class object
...
additional arguments passed to plot

Examples

Run this code
mobydick <- corpus(textfile(unzip(system.file("extdata", "pg2701.txt.zip", package = "quanteda"))))
plot(kwic(mobydick, "Ahab*"))

Run the code above in your browser using DataLab