Skip to contents

Shows how changing one variable affects another, with a connecting line showing the relationship.

Usage

animate_function_trace(
  func,
  x_range = c(-3, 3),
  color = BLUE,
  trace_color = YELLOW,
  duration = 4
)

Arguments

func

Function mapping x -> y for the relationship

x_range

x range to demonstrate

color

Dot color

trace_color

Trace line color

duration

Animation duration

Value

A Scene object