Using the R statistical data analysis language on GRASS 5.0 GIS database files

被引:34
作者
Bivand, RS [1 ]
机构
[1] Norwegian Sch Econ & Business Adm, Dept Geog, N-5045 Bergen, Norway
关键词
Geographical Information Systems; open source software; interface package;
D O I
10.1016/S0098-3004(00)00057-1
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Many researchers wish to explore and analyse spatial data, but typical software does not readily permit such integration. This paper presents a simple interface between two open-source software systems, the GRASS geographical information system, and the R statistical data analysis language. The platform used here is GNU/Linux, because both systems compile and install cleanly; R runs cleanly in Windows environments as well. The interface allows floating point and category data to be passed both ways for raster map layers and sites files; NULL raster cells in GRASS interchange with NA (not available) values in R. Because both systems are developing rapidly and GRASS database internals change often, the interface uses ASCII transfer via temporary files generated by standard programs. The interface operates by running R from within the GRASS environment, and issues commands to GRASS programs through the R system() function. The accompanying code is constructed as an R package, and contains wrapper functions for R plotting, and for R analytical functions returning gridded output, such as trend surface and kriging prediction, kernel density estimation of point patterns, and bicubic spline interpolation. These typical spatial analytical techniques, also often available in some form in GIS, are amply buttressed in R by a large range of other statistical and graphical functions, giving substantial insight into the data or results being handled. The interface will be extended to vector data, and will be coordinated with other database integration packages in R and GRASS. (C) 2000 Elsevier Science Ltd. All rights reserved.
引用
收藏
页码:1043 / 1052
页数:10
相关论文
共 18 条
[1]   Algorithm 761: Scattered-data surface fitting that has the accuracy of a cubic polynomial [J].
Akima, H .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 1996, 22 (03) :362-371
[2]  
[Anonymous], GEOGRAPHICAL SYSTEMS
[3]  
Anselin L., 1997, Recent developments in spatial analysis. Advances in spatial science, P35
[4]  
BAILEY T. C., 1995, INTERACTIVE SPATIAL
[5]  
BIVAND R, 1996, SPATIAL ANAL PERSPEC, P39
[6]  
BIVAND RS, 1999, P 7 SCAND RES C GEOG, P111
[7]  
Burrough P.A., 2000, Principles of Geographic Information Systems
[8]  
BYARS B, 1998, GIS WORLD, V10, P60
[9]  
Ihaka R., 1996, J COMPUTATIONAL GRAP, V5, P299, DOI [DOI 10.1080/10618600.1996.10474713, 10.1080/10618600.1996.10474713, 10.2307/1390807]
[10]  
Jacoby W. G., 1997, Statistical graphics for univariate and bivariate data