anim.hist: Draw an animated histogram.

Description Usage Arguments Details Examples

View source: R/anim.plots.R

Description

Draw an animated histogram.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

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

Example output

sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied

anim.plots documentation built on April 30, 2021, 5:07 p.m.