[R-SIG-Finance] [R-sig-finance] How to add grid to plot.zoo easily
windspeedo at qq.com
Sun Jan 11 12:24:21 CET 2009
I know the method of plot(,tck=1). But I don't like this method because the
color of the grids is in "black" except to change the foreground color via
par() which will change the colors of other items, I guess.
> The grid() could add grids to plot easily. But the vertical grids are
> not at the positions of major ticks if we plot the time series.
> I am satisfied with the major ticks generated by plot.zoo function.
> Could we just add grids to plot.zoo according to the major ticks
> genereated by plot.zoo?
> The following codes work well except that the vertical grids not at the
> position of major ticks of x axis.
> Open High Low Close Volume
> 2002-04-09 4.288226 4.439191 4.288226 4.349428 101491
> 2002-04-10 4.349428 4.365749 4.239264 4.324947 16651
> 2002-04-11 4.324947 4.357588 4.280066 4.292306 5583
> 2002-04-12 4.284146 4.341268 4.275985 4.312707 5208
> 2002-04-15 4.312707 4.324947 4.222944 4.239264 4541
> 2002-04-16 4.222944 4.239264 4.137261 4.145421 6107
> R-SIG-Finance at stat.math.ethz.ch mailing list
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
View this message in context: http://www.nabble.com/How-to-add-grid-to-plot.zoo-easily-tp21398072p21398130.html
Sent from the Rmetrics mailing list archive at Nabble.com.
More information about the R-SIG-Finance