View source: R/lexical_classification.R
Animate.lexical_classification | R Documentation |
Animate.lexical_classification
- Animate a
lexical_classification
object.
## S3 method for class 'lexical_classification'
Animate(
x,
type = "network",
content = "red",
functional = "yellow",
edge.constant,
wc.time = TRUE,
time.constant = 2,
title = NULL,
digits = 2,
current.color = "black",
current.speaker.color = NULL,
non.speaker.color = NA,
missing.color = "purple",
all.color.line = "red",
width = 65,
function.words = qdapDictionaries::function.words,
left = "<<",
right = ">>",
coord = c(0, 0.5),
just = c(0, 0.5),
...
)
x |
A |
type |
Character string of either |
content |
The color to use for 100% lexical_classification (purely content). |
functional |
The color to use for 0% lexical_classification (purely functional). |
edge.constant |
A constant to multiple edge width by. |
wc.time |
logical. If |
time.constant |
A constant to divide the maximum word count by. Time is calculated by 'round(exp(WORD COUNT/(max(WORD COUNT)/time.constant)))'. Therefore a larger constant will make the difference between the large and small word counts greater. |
title |
The title to apply to the animated image(s). |
digits |
The number of digits to use in the current turn of talk's content rate. |
current.color |
The color to use for the current turn of talk's content rate. |
current.speaker.color |
The color for the current speaker. |
non.speaker.color |
The color for the speakers not currently speaking. |
missing.color |
The color to use in a network plot for edges
corresponding to missing text data. Use |
all.color.line |
The color to use for the total average discourse content rate. |
width |
The width to break text at if |
function.words |
A vector of function words. Default is
|
left |
A left bound to wrap content words with if |
right |
A right bound to wrap content words with if |
coord |
The x/y coordinate to plot the test if |
just |
The |
... |
Other arguments passed to |
lexical_classification Method for Animate
The width of edges is based on words counts on that edge until that
moment divided by total number of words used until that moment. Thicker
edges tend to thin as time passes. The actual duration the current edge
stays as the current.color
is based on word counts for that particular
flow of dialogue divided by total dialogue (words) used. The edge label is
the current content rate for that turn of talk (an aggregation of
the sub sentences of the current turn of talk). The coloring of the current
edge content rate is produced at th sentence level, therefor a label may
indicate a more content laden current turn of talk, while the coloring may
indicate a functional laden average of sentences. Coloring is based on
percentage of conent words.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.