[R-sig-Geo] create a grid data

Roger Bivand Roger.Bivand at nhh.no
Fri Aug 25 22:36:50 CEST 2006


On Fri, 25 Aug 2006 tkobayas at indiana.edu wrote:

> Dear R users-
> 
> 
> I have a dataset that has X, Y and other values (Zs) attached to points 
> (X,Y). To show a map of this dataset, a matrix of Zs should be created 
> because I would like to use filled.contour function.

Do your x,y coordinates form a grid, or are they irregularly spaced? If 
so, you need to interpolate to a grid, for example using interp() in the 
akima package.

> 
> Is there any recommendation to go about this?
> 
> Thanks you very much
> 
> Taka
> R-2.3.1
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list