Re: [R] Aggregating spatial data

2013-11-26 Thread David Carlson
To: dcarl...@tamu.edu Cc: r-help@r-project.org Subject: RE: [R] Aggregating spatial data Fantastic. Thanks very much! Is there an easy way to plot the points and the 4 areas? Best, Ioanna -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: 25 November 2013 15:21 To: &#x

Re: [R] Aggregating spatial data

2013-11-26 Thread IOANNA
Fantastic. Thanks very much! Is there an easy way to plot the points and the 4 areas? Best, Ioanna -Original Message- From: David Carlson [mailto:dcarl...@tamu.edu] Sent: 25 November 2013 15:21 To: 'IOANNA'; r-help@r-project.org Subject: RE: [R] Aggregating spatial data

Re: [R] Aggregating spatial data

2013-11-25 Thread David Carlson
College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of IOANNA Sent: Monday, November 25, 2013 8:46 AM To: r-help@r-project.org Subject: [R] Aggregating spatial data Importance: High Hello all, I have a

[R] Aggregating spatial data

2013-11-25 Thread IOANNA
Hello all, I have a data frame in the form: s<-expand.grid(x=seq(1,100,by=1),y=seq(1,100,by=1)) w<-data.frame(x=s$x,y=s$y,z1=rep(c(1,2,3,4),times=length(s$x/4)),z2=seq(1,le ngth(s$x),by=1)) The w$x and w$y represent the location of points and z1 and z2 attributes corresponding to thes