Mapcurves: a quantitative method for comparing categorical maps.

mapcurves(x, y, z = NULL)

Arguments

x

A numeric vector, representing a categorical values.

y

A numeric vector, representing a categorical values.

z

A numeric matrix. The goodness of fit (GOF) value for each pair of classes in x and y. By default this argument is set to NULL, and the value of z is calculated based on x and y.

Value

A list with two elements:

  • "ref_map" - the map to be used as reference ("x" or "y")

  • "gof" - the Mapcurves's goodness of fit value

References

Hargrove, William W., Forrest M. Hoffman, and Paul F. Hessburg. "Mapcurves: a quantitative method for comparing categorical maps." Journal of Geographical Systems 8.2 (2006): 187.

Examples

set.seed(2018-03-21)
A = floor(matrix(runif(100, 0, 9), 10))
B = floor(matrix(runif(100, 0, 9), 10))
mapcurves(A, B)
#> Results:
#> 
#>  The goodness of fit: 0.19 
#>  Reference map: x