On Tue, Oct 5, 2010 at 3:37 PM, Dimitri Liakhovitski
<dimitri.liakhovit...@gmail.com> wrote:
> my.data$date

I wouldn't use grid - it suggests you try abline, so something like:

 > abline(v=my.data$date,lty=2)

 - to put vertical lines at your data points. For the horizontal grid
lines, we can just use the axis tick marks:

 > axTicks(2)
 [1] -5  0  5 10 15 20

 thus:

 > abline(h=axTicks(2), lty=2)

adjust lty and col options to suit

Barry


-- 
blog: http://geospaced.blogspot.com/
web: http://www.maths.lancs.ac.uk/~rowlings
web: http://www.rowlingson.com/
twitter: http://twitter.com/geospacedman
pics: http://www.flickr.com/photos/spacedman

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to