Animate.discourse_map: Discourse Map

Description Usage Arguments Details Note

View source: R/discourse_map.R

Description

Animate.discourse_map - Animate a discourse discourse_map.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'discourse_map'
Animate(
  x,
  edge.constant,
  sep = "_",
  current.color = "red",
  previous.color = "grey50",
  wc.time = TRUE,
  time.constant = 2,
  title = NULL,
  ...
)

Arguments

x

The discourse_map object.

edge.constant

A constant to multiple edge width by.

sep

The separator character to use between grouping variables.

current.color

The color to make the vector edge as it moves.

previous.color

The color to make the already plotted edges.

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).

...

ignored

Details

discourse_map Method for Animate

Note

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.


trinker/qdap documentation built on Sept. 30, 2020, 6:28 p.m.