[R] Grid building in R

Erik Iverson iverson at biostat.wisc.edu
Thu Jul 10 00:48:34 CEST 2008


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



More information about the R-help mailing list