英文原地址:
[本人亲自翻译,转载请注明:来自于]
该英文的维护者Roger Bivand与人合著的《Applied Spatial Data Analysis with R》已翻译为中文《空间数据分析与R语言实践》,由清华大学出版社出版,感兴趣的可以买了来看,只需一顿饭钱,省了自己半年的摸索。[说句实在话,翻译的有点晦涩,不过国内搞这个的本来很少,不能苛求,无论如何咱们看中文版还是省点劲的。]
CRAN 任务概览: 空间数据的分析
Maintainer: | Roger Bivand |
Contact: | Roger.Bivand at nhh.no |
Version: | 2015-06-09 |
Base R 包含很多函数用于空间数据的读取、可视化和焦点. 本概览的重点是"geographical"空间数据, 这些包括地理位置和相关的属性等。.Base R函数由贡献包组成, 位于CRAN, 其他的还在发展之中。一个活跃的地方是, 列出"Spatial Data and Statistics" 工程在。关于R-spatial包的信息, 尤其是 将被发送到R-Forge rspatial项目的, 包括一个可视化的gallery。
贡献包的目的领域主要有两个:将数据移入R或者移出和在R中分析空间数据或者可视化。
The mailing-list is a good place to begin for obtaining help and discussing questions about both accessing data, and analysing it. The mailing list is a good place to search for information about relevant courses, and a list is hosted at the .
The packages in this view can be roughly structured into the following topics. If you think that some package is missing from the list, please let me know.
Classes for spatial data : Because many of the packages importing and using spatial data have had to include objects of storing data and functions for visualising it, an initiative is in progress to construct shared classes and plotting functions for spatial data. The package is discussed in a note in . Many other packages have become dependent on these classes, including and. The package provides an interface to topology functions for objects using . is now available for Mac OSX on CRAN for pre-Mavericks R; for Mavericks+, please see advice given on R-sig-mac: , and . Also see the README file in the package, for example at . The package is a major extension of spatial data classes to virtualise access to large rasters, permitting large objects to be analysed, and extending the analytical tools available for both raster and vector data. Used with, it can also provide enhanced visualisation and interaction. The package contains spatial functions meant to enhance the core functionality of the package, including a parallel processing engine for use with rasters. The package provides linked micromaps using ggplot2. The package extends the shared classes defined in for spatio-temporal data (see ). The converts a spatial object from class SpatialGridDataFrame to SpatialPolygonsDataFrame.
An alternative approach to some of these issues is implemented in the package; provides modelling support. In addition, provides mapping facilities directed to meet the needs of geologists, and uses the package.
Handling spatial data : A number of packages have been written using sp classes. The package introduces many GIS methods that now permit much to be done with spatial data without having to use GIS in addition to R. It may be complemented by, which provided calculation of distances and routes on geographic grids. permits computations of distance and area to be carried out on spatial data in geographical coordinates. The package provides a range of sampling functions. The package extends sp classes to permit the accessing and manipulating of spatial data for animal tracking. The package provides hierarchical decomposition of entropy for categorical map comparisons. The package permits interactive graphical exploratory spatial data analysis. provides spatial coverage sampling and random sampling from compact geographical strata.
The UScensus2000 suite of packages (,) makes the use of data from the 2000 US Census more convenient. An important data set, Guerry's "Moral Statistics of France", has been made available in the package, which provides data and maps and examples designed to contribute to the integration of multivariate and spatial analysis. The package is designed for downloading, plotting and manipulating bathymetric and topographic data in R. can query the ETOPO1 bathymetry and topography database hosted by the NOAA, use simple latitude-longitude-depth data in ascii format, and take advantage of the advanced plotting tools available in R to build publication-quality bathymetric maps (see the paper). Modern country boundaries are provided at 2 resolutions by along with functions to join and map tabular data referenced by country names or codes. Chloropleth and bubble maps are supported and general functions to work on user supplied maps (see . Higher resolution country borders are available from the linked package. Historical country boundaries (1946-2012) can be obtained from the package along with functions for calculating distance matrices (see ).
The package with accompanying provides tools for exploring and developing correction tools for remote sensing data. is a collection of utility and convenience functions, and some interesting spatial functions.
Reading and writing spatial data - : Maps may be vector-based or raster-based. The package provides bindings to -supported raster formats and -supported vector formats. It contains functions to write raster files in supported formats. The package also provides projection support for vector objects ( provides searchable online PROJ.4 representations of projections). Affine and similarity transformations on sp objects may be made using functions in the package. The Windows and Mac OSX CRAN binaries of include subsets of possible data source drivers; if others are needed, use other conversion utilities, or install from source against a version of GDAL with the required drivers. The CRAN OSX binary is for pre-Mavericks R; for Mavericks+, please see advice given on R-sig-mac: , and . Also see the README file in the package, for example at . The package provides functions for reading and writing well-known text (WKT) geometry, and the package provides functions for reading and writing well-known binary (WKB) geometry.
Reading and writing spatial data - other packages : There are a number of other packages for accessing vector data on CRAN: (with and) provides access to the same kinds of geographical databases as S - allows ArcInfo v.7 binary files and *.e00 files to be read, and and read and write ArcGIS/ArcView shapefiles; for NetCDF files, may be used. The package also provides helper functions for writing map polygon files to be read by WinBUGS, Mondrian, and the tmap command in Stata. It also provides interface functions between and and sp classes, in addition to databases and sp classes. There is also an interface to GSHHS shoreline databases. For visualisation, the colour palettes provided in the package are very useful, and may be modified or extended using thecolorRampPalette function provided with R. The package provides functions for choosing class intervals for thematic cartography. The package gives a simple interface between GMT map-making software and R. is an interface to the service. If the user wishes to place a map backdrop behind other displays, the the package for accessing Google Maps(TM) may be useful. may be used for spatial visualisation with Google Maps and OpenStreetMap. The package provides methods for the visualisation of spatial and spatio-temporal objects in Google Maps in a web browser. is a package providing methods for the visualisation of spatial and spatio-temporal objects in Google Earth. A further option is, which provides basic web-mapping functionality to combine vector data files and online map tiles from different sources. gives access to open street map raster images, and provides infrastructure to access OpenStreetMap data from different sources, to work with the data in common R manner, and to convert data into available infrastructure provided by existing R packages. may be used as a processing program for spatially distributed data, and is capable of error corrections and data visualisation.
Integration with version 6.* and 7 (devel) of the leading open source GIS, GRASS, is provided in CRAN package, using for exchanging data. is a wrapper for Python access to the ArcGIS GeoProcessor, and is a similar shell-based wrapper for SAGA commands.
Point pattern analysis : The package is a recommended package shipped with base R, and contains several core functions, including an implementation of Khat by its author, Prof. Ripley. In addition, allows freedom in defining the region(s) of interest, and makes extensions to marked processes and spatial covariates. Its strengths are model-fitting and simulation, and it has a useful . It is the only package that will enable the user to fit inhomogeneous point process models with interpoint interactions. The package provides graphs, graph visualisation and graph based summaries to be used with spatial point pattern analysis. The package also allows point data to be analysed within a polygonal region of interest, and covers many methods, including 2D kernel densities.
provides wrappers, functions and data for spatial point pattern analysis, used in the book on Spatial Ecology of the ECESPA/AEET. The functions for binning points on grids in may also be of interest. The package perform first- and second-order multi-scale analyses derived from Ripley's K-function. The package is a collection of functions for estimating centrographic statistcs and computational geometries from spatial point patterns. provides edge-corrected kernel density estimation and binary kernel regression estimation for multivariate spatial point process data. contains functions for spatial modelling for distance sampling data, and provides segregation measures for multitype spatial point patterns. uses the Grieg-Smith method on 2 dimensional spatial data. The package allows simple computation of a full set of spatial statistic functions of distance, including classical ones (Ripley's K and others) and more recent ones used by spatial economists (Duranton and Overman's Kd, Marcon and Puech's M). It relies on spatstat for core calculation. contains functions that compute the lattice-based density estimator of Barry and McIntyre, which accounts for point processes in two-dimensional regions with irregular boundaries and holes.
Geostatistics : The package provides a wide range of functions for univariate and multivariate geostatistics, also for larger datasets, while and contain functions for model-based geostatistics. Variogram diagnostics may be carried out with. Automated interpolation using is available in. This family of packages is supplemented by with procedures for automated interpolation and, which implements projected sparse Gaussian process kriging. A similar wide range of functions is to be found in the package. The package is shipped with base R, and contains several core functions. The package fits Gaussian univariate and multivariate models with MCMC. is a different Bayesian geostatistical modelling package. The package contains some geostatistical and radial basis functions, including prediction and cross validation. Besides, it includes functions for the design of optimal spatial sampling networks based on geostatistical modelling.
The package provides functions for the simulation and analysis of random fields, and variogram model descriptions can be passed between, and this package. proposes several approaches for spatial extremes modelling using. In addition,, and provide alternative approaches to geostatistical modelling. The package is able to fit, spatially predict and temporally forecast large amounts of space-time data using [1] Bayesian Gaussian Process (GP) Models, [2] Bayesian Auto-Regressive (AR) Models, and [3] Bayesian Gaussian Predictive Processes (GPP) based AR Models. The package provides functions for the geostatistical interpolation of data with irregular spatial support such as runoff related data or data from administrative units. The package provides functions for fitting linear models with spatially correlated errors by robust and Gaussian Restricted Maximum Likelihood and for computing robust and customary point and block kriging predictions, along with utility functions for cross-validation and for unbiased back-transformation of kriging predictions of log-transformed data. The package has an emphasis on kriging, and provides functions for prediction and simulation.
The package is also available. Within the same general topical area are the and packages for triangulation and the package for spline interpolation; the package provides scattered data interpolation with multilevel B-splines. In addition, there are the package, which supports the computation of spatial covariance matrices for data on rectangles, the package building in part on, and the package. The package provides for the estimation of the parameters of a spatio-temporal model using the EM algorithm, and the estimation of the parameter standard errors using a spatio-temporal parametric bootstrap. is another random fields simulations package. The is for geostatistical modeling for data on stream networks, including models based on in-stream distance. Models are created using moving average constructions. Spatial linear models, including covariates, can be fit with ML or REML. Mapping and other graphical functions are included.
Disease mapping and areal data analysis : is a package for the detection of spatial clusters of diseases. It extends and depends on the package, which provides basic functions for building neighbour lists and spatial weights, tests for spatial autocorrelation for areal data like Moran's I, and functions for fitting spatial regression models, such as SAR and CAR models. These models assume that the spatial dependence can be described by known weights. The package provides implementations of cluster detection and disease mapping functions, including Bayesian cluster detection, and supports strata. Regionalisation of polygon objects is provided by: a function to calculate spatial clusters using the Getis-Ord local statistic. It searches irregular clusters (ecotopes) on a map, and byskater in. The package provides functions for measuring spatial segregation. The package contains an implementation of geographically weighted regression methods for exploring possible non-stationarity. The package fits geographically weighted regression (GWR) models and has tools to diagnose and remediate collinearity in the GWR models. Also fits geographically weighted ridge regression (GWRR) and geographically weighted lasso (GWL) models. The package contains functions for computing geographically weighted models. The package provides another approach to relative risks. The package implements Bayesian hierarchical spatial areal unit models. In such models the spatial correlation is modelled by a set of random effects, which are assigned a conditional autoregressive (CAR) prior distribution. Examples of the models included are the BYM model as well as a recently developed localised spatial smoothing model. The package is a helpful way of passing out spatial models to WinBUGS. The package fits spatial GLMMs, using the Matern correlation function as the basic model for spatial random effects. The package is for profile regression, which is a Dirichlet process Bayesian clustering model; it provides a spatial CAR term that can be included in the fixed effects (which are global, ie. non cluster specific, parameters) to account for any spatial correlation in the residuals. The package provides tools to construct and exploit spatially weighted context data, and further allows combining the resulting spatially weighted context data with individual-level predictor and outcome variables, for the purposes of multilevel modelling. The package gnerates distance matrices from shape files and represents spatially weighted multilevel analysis results.
Spatial regression : The choice of function for spatial regression will depend on the support available. If the data are characterised by point support and the spatial process is continuous, geostatistical methods may be used, or functions in the package. If the support is areal, and the spatial process is not being treated as continuous, functions provided in the package may be used. This package can also be seen as providing spatial econometrics functions, and, as noted above, provides basic functions for building neighbour lists and spatial weights, tests for spatial autocorrelation for areal data like Moran's I, and functions for fitting spatial regression models. It provides the full range of local indicators of spatial association, such as local Moran's I and diagnostic tools for fitted linear models, including Lagrange Multiplier tests. Spatial regression models that can be fitted using maximum likelihood include spatial lag models, spatial error models, and spatial Durbin models. For larger data sets, sparse matrix techniques can be used for maximum likelihood fits, while spatial two stage least squares and generalised method of moments estimators are an alternative. When using GMM, can be used to accommodate both autocorrelation and heteroskedasticity. Spatial count regression is provided using custom MCMC by. The provides functions for locally weighted regression, semiparametric and conditionally parametric regression, fourier and cubic spline functions, GMM and linearized spatial logit and probit, k-density functions and counterfactuals, nonparametric quantile regression and conditional density functions, Machado-Mata decomposition for quantile regressions, spatial AR model, repeat sales models, and conditionally parametric logit and probit. The package provides methods for fitting spatial panel data by maximum likelihood and GM. make possible Bayesian estimation of the spatial autoregressive probit model (SAR probit model).
Ecological analysis : There are many packages for analysing ecological and environmental data. They include for exploratory and Euclidean methods in the environmental sciences, the family of packages for the analysis of habitat selection by animals (,,, and), for the regulation, decomposition and analysis of space-time series, for ordination methods and other useful functions for community and vegetation ecologists, and many other functions in other contributed packages. One such is, basing on the classes provided by. has entered CRAN recently, and provides a range of spatial nonparametric covariance functions. is a package to manipulate species range (extent-of-occurrence) maps, mainly tools for easy generation of biodiversity (species richness) or life-history traits maps. The package is a platform for experimenting with spatially explicit individual-based vegetation models. builds on other packages to create models using underlying GIS data. An off-CRAN package - - is for the spatial analysis of plant disease incidence. The package uses and to make use of both geographic and genetic informations to estimate the number of populations in a dataset and delineate their spatial organisation. The package provides tools for analyzing spatial data, especially non-Gaussian areal data. It supports the sparse spatial generalized linear mixed model of Hughes and Haran (2013) and the centered autologistic model of Caragea and Kaiser (2009). The Task View contains a much more complete survey of relevant functions and packages.
CRAN packages:
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
(core)
Related links:
CRAN Task View: