Animate.discourse_map: Discourse Map

View source: R/discourse_map.R

Animate.discourse_mapR Documentation

Discourse Map

Description

Animate.discourse_map - Animate a discourse discourse_map.

Usage

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


qdap documentation built on May 31, 2023, 5:20 p.m.