Skip to contents

Progressive drawing of a time series line, optionally with a trailing dot and value label.

Usage

animate_time_series(
  data,
  time,
  value,
  color = YELLOW,
  show_dot = TRUE,
  show_value = FALSE,
  axes = NULL,
  duration = 5
)

Arguments

data

Data.frame with time and value columns

time

Column name for time/x values

value

Column name for values/y values

color

Line color

show_dot

Show a trailing dot

show_value

Show current value label

axes

Axes object (NULL = auto-create)

duration

Animation duration

Value

A Scene object