On 4/25/2008 5:32 AM, Agustin Lobo wrote:
> Hi,
> is not there any way to tell grid() the starting value? With nx,ny
> I get the right number of grid cells, but not on the exact
> values I would like them. (I know I can do it with abline(), just
> asking for an easier way, i.e. grid(nx,nx,start.x,start.y))
See the help page:

If more fine tuning is required, use 'abline(h = ., v = .)'
      directly.

Just use

abline(h=seq(starty, stopy, len=ny), v=seq(startx, stopx, len=nx))

Duncan Murdoch

> 
> An alternative way (which would solve another problem) would be making 
> the axes coincident with the rectangular plot region, that is, if ploting
> plot(0:10,0:10)
> 
> get (0,0) just on the bottom down corner of the rectangle. I've tried 
> with several par() and could not find the way.
> 
> Thanks
> 
> Agus

______________________________________________
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