Learn R Programming

qdap (version 1.3.5)

Animate.polarity: Animate Polarity

Description

Animate.polarity - Animate a polarity object.

Usage

## S3 method for class 'polarity':
Animate(x, negative = "blue", positive = "red",
  neutral = "yellow", edge.constant, wc.time = TRUE, time.constant = 2,
  title = NULL, digits = 3, current.color = "black",
  current.speaker.color = NULL, non.speaker.color = NA,
  ave.color.line = "red", as.network = TRUE, ...)

Arguments

x
A polarity object.
negative
The color to use for negative polarity.
positive
The color to use for positive polarity.
neutral
The color to use for neutral polarity.
edge.constant
A constant to multiple edge width by.
wc.time
logical. If TRUE weights duration of frame by word count.
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 polarity.
current.color
The color to use for the current turn of talk polarity.
current.speaker.color
The color for the current speaker.
non.speaker.color
The color for the speakers not currently speaking.
ave.color.line
The color to use for the average color line if network = FALSE.
as.network
logical. If TRUE the animation is a network plot. If FALSE the animation is a hybrid dot plot.
...
Other arguments passed to discourse_map.

Details

polarity Method for Animate