Re: [R] Grid building in R

From: Sam Albers <>
Date: Wed, 09 Jul 2008 16:04:21 -0700

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 not give me. Sorry to be unclear.

On Wed, Jul 9, 2008 at 3:48 PM, Erik Iverson <> wrote:

> 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")
> 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 as long it is to scale. Thanks

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 09 Jul 2008 - 23:08:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jul 2008 - 23:31:42 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive