Learn R Programming

polmineR (version 0.7.4)

highlight: Highlight tokens.

Description

Highlight tokens by term or cpos in a html document generated by read/html.

Usage

highlight(.Object, ...)

# S4 method for character highlight(.Object, highlight = list(), tooltips = NULL)

# S4 method for html highlight(.Object, highlight = list(), tooltips = NULL)

Arguments

.Object

either a "partition" or "character" object

...

further parameters

highlight

a "list" of character vectors, the names need to provide the colors

tooltips

a "list" of character vectors, all names need to be included in lists of the highlight-list

html

character vector with a website