Learn R Programming

GD (version 10.5)

gdinteract: Geographical detectors: interaction detector.

Description

Function for interaction detector calculation and visualization. The types of interactions include "Enhance, nonlinear", "Independent", "Enhance, bi-", "Weaken, uni-" and "Weaken, nonlinear".

Usage

gdinteract(formula, data = NULL)
# S3 method for gdinteract
print(x, ...)
# S3 method for gdinteract
plot(x, ...)

Arguments

formula

A formula of response and explanatory variables

data

A data.frame includes response and explanatory variables

x

A list of interaction detector results

...

Ignore

Examples

Run this code
gi1 <- gdinteract(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
gi1
# \donttest{
data <- ndvi_40[,1:3]
gi2 <- gdinteract(NDVIchange ~ ., data = data)
gi2
# }

Run the code above in your browser using DataLab