Re: [R] Grid building in R

2008-07-10 Thread Jim Lemon
On Wed, 2008-07-09 at 17:12 -0500, hadley wickham wrote: > What do you mean by equidistant? You can have three points that are > equidistant on the plane, but there's no way to add another point and > have it be the same distance from all of the existing points. (Unless > all the points are in th

Re: [R] Grid building in R

2008-07-09 Thread Dylan Beaudette
On Wednesday 09 July 2008, hippie dream wrote: > This might not possible in R but I thought I would give it shot. I am have > to set up a 40 x 40 cm grid of 181 points equidistant from each other. Is > there any way to produce a graph with R that can do this for me? Actual > sizes are unimportant a

Re: [R] Grid building in R

2008-07-09 Thread Sam Albers
Ahhh. That worked perfectly. Thank you very much. On Wed, Jul 9, 2008 at 4:19 PM, Dylan Beaudette <[EMAIL PROTECTED]> wrote: > On Wednesday 09 July 2008, hippie dream wrote: > > This might not possible in R but I thought I would give it shot. I am > have > > to set up a 40 x 40 cm grid of 181 poi

Re: [R] Grid building in R

2008-07-09 Thread Sam Albers
Basically, I want 181 points equally spaced over a 40 x 40 cm area. I want to be able to specify the number of points and the area to which they are plotted on. I think you are right that grid is what I am looking for but I was the grid to have axes which your code below, although appreciated, did

Re: [R] Grid building in R

2008-07-09 Thread Erik Iverson
Still not sure exactly what you want, but it sounds like the 'grid' package may be of some help. It has very flexible ways partitioning regions for plotting. Is this anything like you're after? library(grid) for(i in 0:10) for(j in 0:10) grid.points(i / 10, j / 10, default.unit = "npc

Re: [R] Grid building in R

2008-07-09 Thread Sam Albers
Right equidistant was clearly the wrong word. Sorry. I just meant that any given point should have an equal distance from the four points immediately surrounding it (x,-x,y-y) aside from those on the edge which will obviously only have two or three points surrounding. On Wed, Jul 9, 2008 at 3:12 P

Re: [R] Grid building in R

2008-07-09 Thread hadley wickham
What do you mean by equidistant? You can have three points that are equidistant on the plane, but there's no way to add another point and have it be the same distance from all of the existing points. (Unless all the points are in the same place) Hadley On Wed, Jul 9, 2008 at 5:02 PM, hippie dre

[R] Grid building in R

2008-07-09 Thread hippie dream
This might not possible in R but I thought I would give it shot. I am have to set up a 40 x 40 cm grid of 181 points equidistant from each other. Is there any way to produce a graph with R that can do this for me? Actual sizes are unimportant as long it is to scale. Thanks -- View this message in