Hi,
I am working with financial data in R and wanted to animate the progression of a scatter plot, in time, using googleVis. For example, lets say I have a time series of 10 variables. Thus, for each day in the time series, I would like to scatter plot 10 data points on the y-axis, with the x-axis simply being an index from 1 to 10. In addition, I would like the y-axis scaling to be fixed in time, so that not only is the shape of the line reflected, but it will also illustrate any "rising" or "dropping" of the line's level.
The following is a simple example with a short time series of 3 variables.
Date, Var1, Var2, Var3
01/01, 4, 5, 6
01/02, 4, 4, 4
01/03, 3, 3, 3
01/04, 3, 2, 1
In the above simple example, I would expect there to be 4 separate "frames" in the animation, with the following progression:
Scatter plot #1. upward sloping line, with the first point starting at 4
Scatter plot #2. zero slope line, with all points at 4
Scatter plot #3. zero slope line, with all points at 3 (i.e. if the y-axis is fixed, the line should appear to "drop")
Scatter plot #4. downward sloping line, with the first point starting at 3
The goal is to illustrate the evolution of the shape of a line, in addition to it's associated level on the y-axis (i.e. in the example above, the line "drops" from Scatter plot #2 to Scatter plot #3).
Thank you!
mar