Animate.polarity
- Animate a polarity
object.
# S3 method for polarity
Animate(
x,
negative = "blue",
positive = "red",
neutral = "yellow",
edge.constant,
wc.time = TRUE,
time.constant = 2,
title = NULL,
digits = 3,
width = 65,
current.color = "black",
current.speaker.color = NULL,
non.speaker.color = NA,
ave.color.line = "red",
type = "network",
coord = c(0, 0.5),
just = c(0, 0.5),
...
)
A polarity
object.
The color to use for negative polarity.
The color to use for positive polarity.
The color to use for neutral polarity.
A constant to multiple edge width by.
logical. If TRUE
weights duration of frame by word
count.
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.
The title to apply to the animated image(s).
The number of digits to use in the current turn of talk polarity.
The width to break text at if type = "text"
.
The color to use for the current turn of talk polarity.
The color for the current speaker.
The color for the speakers not currently speaking.
The color to use for the average color line if
type = "network"
.
Character string of either "network"
(as a network
plot), "bar"
(as a bar plot), or "text"
(as a simple
colored text plot).
The x/y coordinate to plot the test if type = "text"
.
The hjust
and vjust
values to use for the text if
type = "text"
.
Other arguments passed to discourse_map
or
annotate
if type = "text"
.
polarity Method for Animate