[R] How to add grid lines at specific position to a plot?

2012-03-15 Thread Michael
How to add grid lines at specific position to a plot? Hi all, [Disclaimer: I have done extensive and intensive searching on Google and asked around but couldn't find a solution to this problem. Please help me instead of just pointing out how simple and stupid my question is. God bless good

Re: [R] How to add grid lines at specific position to a plot?

2012-03-15 Thread Sarah Goslee
abline(h=0) On Thu, Mar 15, 2012 at 1:05 PM, Michael comtech@gmail.com wrote: How to add grid lines at specific position to a plot? Hi all, [Disclaimer: I have done extensive and intensive searching on Google and asked around but couldn't find a solution to this problem. Please help me

Re: [R] How to add grid lines at specific position to a plot?

2012-03-15 Thread Luke Miller
abline(h = 0) will do what you want. abline(h = c(0,1,2)) would draw additional lines at y = 1 and y = 2. abline(v = 0) would draw a vertical line at x = 0. All of these lines will be plotted on top of whatever you plotted previously, so you may have to replot your points or lines so that they're