- tokens
A data.frame with a column for document ids (doc_col)
and a column for tokens (token_col)
- value
A numeric vector with values between -1 and 1. Determines the color
mixture of the scale colors specified in col_range
- alpha
Optionally, the alpha (transparency) can be specified, with 0 being fully
transparent and 1 being fully colored. This can be a vector to specify a
different alpha for each value.
- meta
A data.frame with a column for document_ids (doc_col). All other columns are added
to the browser as document meta
- col_range
The color used to highlight
- doc_col
The name of the document id column
- token_col
The name of the token column
- doc_nav
The name of a column in meta, used to set a navigation tag
- token_nav
Alternative to doc_nav, a column in the tokens, used to set a navigation tag
- filename
Name of the output file. Default is temp file
- unfold
Either a character vector or a named list of vectors of the same length as tokens. If given, all tokens with a tag can be clicked on to unfold the given text. If a list of vectors is given,
the values of the columns are concatenated with the column name. E.g. list(doc_id = 1, sentence = 1) will be [doc_id = 1, sentence = 2].
- span_adjacent
If TRUE, include adjacent tokens with identical attributes within the same tag
- ...
Additional formatting arguments passed to create_browser()