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
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
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
3 matches
Mail list logo