Add tooltips to text output.
Highlight tokens based on exact match, a regular expression or corpus
position in kwic
output or html document.
tooltips(.Object, tooltips, ...) ## S4 method for signature 'character' tooltips(.Object, tooltips = list()) ## S4 method for signature 'html' tooltips(.Object, tooltips = list()) ## S4 method for signature 'kwic' tooltips(.Object, tooltips, regex = FALSE, ...)
.Object |
A |
tooltips |
A named |
... |
Further arguments are interpreted as assignments of tooltips to tokens. |
regex |
Logical, whether character vector values of argument
|
use("polmineR") P <- partition("REUTERS", places = "argentina") H <- html(P) Y <- highlight(H, lightgreen = "higher") T <- tooltips(Y, list(lightgreen = "Further information")) if (interactive()) T # Using the tooltips-method in a pipe ... h <- P %>% html() %>% highlight(yellow = c("barrels", "oil", "gas")) %>% tooltips(list(yellow = "energy"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.