Learn R Programming

SpeedReader (version 0.9.1)

ngram_sequnce_plot: N-Gram Sequence Matching

Description

Calculates the positions of n-grams in two document versions which match an ngram in the other version.

Usage

ngram_sequnce_plot(ngram_sequnce_results, document = 1, columns = NULL,
  include_title_legend = TRUE, return_plot_object = FALSE,
  custom_title = NULL)

Arguments

ngram_sequnce_results

A List object produced by the `ngram_sequence_matching()` function.

document

Can be 1 or 2, the index of the document to plot.

columns

Defaults to NA, in which case the number of columns will be set automatically. Can be set to any integer number by the user.

include_title_legend

Defaults to TRUE in which cas a title and legend are include in the plot. Can be set to FALSE for multi-plotting.

return_plot_object

Logical defaults to FALSE. If TRUE, then the plot is not printed, only returned.

custom_title

Optional custom plot title.

Value

A plot