[R] plotting a grid with grid() ?
dwinsemius at comcast.net
Mon Aug 24 23:14:44 CEST 2009
On Aug 24, 2009, at 4:10 PM, John Kane wrote:
> I am trying to come up with a way of shading-in a grid for a simple
> So far I can draw a square where I want but I cannot seem to draw a
> complete grid. I am just drawing them along the diagonal!!
> Clearly I am missing something simple but what?
> Any suggestions gratefully accepted.
> op <- par(xaxs="i", yaxs="i")
> plot(c(1, 11), c(1,11), type ="n", xlab="", ylab="")
# and of course you suggested using grid() so ...
> par <- op
David Winsemius, MD
West Hartford, CT
More information about the R-help