Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

price.ani

Demonstrate stock prices in animations


Description

This function can display the frequencies of stock prices in a certain time span with the span changing.

Usage

price.ani(price, time, time.begin = min(time), span = 15 * 60, ..., xlab = "price", 
    ylab = "frequency", xlim, ylim, main)

Arguments

price

stock prices

time

time corresponding to prices

time.begin

the time for the animation to begin (default to be the minimum time)

span

time span (unit in seconds; default to be 15 minutes)

...

other arguments passed to plot

xlab, ylab, xlim, ylim, main

they are passed to plot with reasonable default values

Value

invisible NULL

Author(s)

Yihui Xie

References


animation

A Gallery of Animations in Statistics and Utilities to Create Animations

v2.6
GPL
Authors
Yihui Xie [aut, cre], Christian Mueller [ctb], Lijia Yu [ctb], Weicheng Zhu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.