Draw an animated histogram.
anim.hist(x, times, speed = 1, show = TRUE, use.times = TRUE, window = t, window.process = NULL, density = NULL, angle = NULL, col = NULL, border = NULL, ...)
parameters passed to hist.
hist
see anim.plot.
anim.plot
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.
x, density, angle, col
border
times
x
# NOT RUN { anim.hist(rep(rnorm(5000), 7), times=rep(1:7, each=5000), breaks=c(5,10,20,50,100,200, 500, 1000)) # }
Run the code above in your browser using DataLab