Learn R Programming

GD (version 1.6)

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, ...)

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

...

Ignore

Examples

Run this code
# NOT RUN {
g1 <- gd(NDVIchange ~ Climatezone, data = ndvi_40)
g1
# }
# NOT RUN {
data <- ndvi_40[,1:3]
g2 <- gd(NDVIchange ~ ., data = data)
g2
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab