This function can display the frequencies of stock prices in a certain time span with the span changing.
price.ani(
price,
time,
time.begin = min(time),
span = 15 * 60,
...,
xlab = "price",
ylab = "frequency",
xlim,
ylim,
main
)
stock prices
time corresponding to prices
the time for the animation to begin (default to be the
minimum time
)
time span (unit in seconds; default to be 15 minutes)
other arguments passed to plot
they are passed to plot
with
reasonable default values
invisible NULL
Examples at https://yihui.org/animation/example/price-ani/