anim.hist {anim.plots}R Documentation

Draw an animated histogram.

Description

Draw an animated histogram.

Usage

anim.hist(
  x,
  times,
  speed = 1,
  show = TRUE,
  use.times = TRUE,
  window = t,
  window.process = NULL,
  density = NULL,
  angle = NULL,
  col = NULL,
  border = NULL,
  ...
)

Arguments

x, density, angle, col, border, ...

parameters passed to hist.

times, show, speed, use.times, window, window.process

see anim.plot.

Details

Parameters x, density, angle, col and border are all "chunked", i.e. first recycled to the length of times or x (whichever is longer), then split according to the unique values of times. See anim.plot for more details.

Examples

anim.hist(rep(rnorm(5000), 7), times=rep(1:7, each=5000), 
     breaks=c(5,10,20,50,100,200, 500, 1000))

[Package anim.plots version 0.2.2 Index]