Is there a command to easily add a grid onto an R plot?
I agree with cbare.
Use abline
to draw lines only where you really need.
Example from my last code:
abline(v=c(39448, 39814), col="grey40")
abline(h=c(-0.6, -0.4, -0.2, 0.2,0.4,0.6), col="grey10", lty="dotted")
remember that:
v
is for vertical lines.
h
for horizontal.
exploit the commands
lty
for dotted line
color
for light coloured line
in order to obtain "no heavy grid".