gwfa: Geographically Weighted Fractal Analysis

Description Usage Arguments Details Author(s) References Examples

View source: R/Class_grid.R

Description

Estimate local fractal dimension of a 2D set of points

Usage

1
  gwfa(points, q = 0, radius, bandwith, sample_size, cell_size) 

Arguments

points

A data.frame containing two rows "x" and "y" corresponding to the longitude and latitude of the set of points analysed

q

The vector of order of the Renyi entropy. q=0 allows calculating more robusting box-counting dimension.

radius

the vector of radius of the multi-scale analysis

bandwith

Bandwith of the GWFA. This bandwidth acts as a local-global parameter. A large bandwidth leads to a global analysis. On the contrary, a small bandwidth leads to a local analysis. The unit of measurement is free. It must be the same as the unit of cell_size variable.

sample_size

size of the sample for calculate the average of the masses for the different radius and Renyi entropy orders M^q(R). The choice of sample_size is a tradeoff between precision and computing speed. In our experience, 3000 is an appropriate choice.

cell_size

Cell size of the grid. The unit of measurement is free. It must be the same as the unit of bandwith variable.

Details

GWFA is a spatial method to analyse the variability of multiscale behavior in space of set of points. The vector of radius sets the scale of the multiscale analysis whereas the bandwith describes the size of the neighborhood of the analysis. The cell_size indicate the spacing between the estimate points. sample_size is a technique parameter indicates the size of the sample of the set of points used in the analysis.

GWFA is a mix between Sandbox Multifractal analysis and Geographically Weighted Approach. The kernel used is the bisquare (1-(\frac{distance}{bandwith})^2)^2

As output, we get a Grid object. A Grid class inherits from the class data.frame and it is completed by five slots (cell_size, bandwith, radius,q and sample_size) corresponding of input parameters of the gwfa function.

Author(s)

Cecile Tannier, Stephane G. Roux and Francois Semecurbe

References

Vicsek, T. (1990). Mass multifractals. Physica A: Statistical Mechanics and its Applications, 168(1), 490-497.

Brunsdon, C., Fotheringham, S., & Charlton, M. (1998). Geographically weighted regression. Journal of the Royal Statistical Society: Series D (The Statistician), 47(3), 431-443.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
data("guadeloupe")

test=gwfa(points=guadeloupe,q=0,radius=(20*2^((0:6)/2)),
bandwith=1600,sample_size=3000,cell_size=2000)
test=test[test$count>100,]#select the cells with at least 100 points. 


#estimate the fractal dimension on the 7 radius
X=cbind(rep(1,length(test@radius)),log2(test@radius))
fit_frac_dim=(do.call(cbind,test[,4:10]))%*%t(solve(t(X)%*%X)%*%t(X))
test$dimfrac=fit_frac_dim[,2]

#create spatial polygon dataframe
shp=grid_to_spdf(test,"2970")

#convert to geographic information systems software format 
library(rgdal)
writeOGR(shp,"guade_analysis.shp","guade_analysis",driver="ESRI Shapefile",overwrite_layer = T)

#use the cartography package
library(cartography)
choroLayer(spdf=shp,nclass=5,var="dimfrac",method="fisher-jenks")

## End(Not run)

gwfa documentation built on May 1, 2019, 11:51 p.m.

Related to gwfa in gwfa...