Learn R Programming

GD (version 10.5)

gd: Geographical detectors: factor detector.

Description

Function for calculating power determinant using factor detector of geographical detectors and visualization.

Usage

gd(formula, data = NULL)
# S3 method for gd
print(x, ...)
# S3 method for gd
plot(x, sig = TRUE, ...)

Arguments

formula

A formula of response and explanatory variables

data

A data.frame includes response and explanatory variables

x

A list of factor detector results

sig

If TRUE, only spatial associations that are significant at the 0.05 level will be plotted; If FALSE, all spatial associations will be plotted.

...

Ignore

Examples

Run this code
g1 <- gd(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
g1
plot(g1)

Run the code above in your browser using DataLab