Skip to contents

Shows a normal distribution curve being drawn, with optional shading for standard deviations or probability regions.

Usage

animate_normal_distribution(
  mean = 0,
  sd = 1,
  shade_region = NULL,
  shade_color = YELLOW,
  show_mean = TRUE,
  show_sd = TRUE,
  axes = NULL,
  duration = 3
)

Arguments

mean

Distribution mean

sd

Standard deviation

shade_region

c(lower, upper) for shading (NULL = no shading)

shade_color

Shading color

show_mean

Show vertical mean line

show_sd

Show standard deviation markers

axes

Axes object (NULL = auto)

duration

Animation duration

Value

A Scene object