gdrisk: Geographical detectors: risk detector.

View source: R/gdrisk.R

gdriskR Documentation

Geographical detectors: risk detector.

Description

Function for risk detector calculation, risk matrix and visualization.

Usage

gdrisk(formula, data = NULL)
## S3 method for class 'gdrisk'
print(x, ...)
## S3 method for class 'gdrisk'
plot(x, ...)

Arguments

formula

A formula of response and explanatory variables

data

A data.frame includes response and explanatory variables

x

A list of risk detector results

...

Ignore

Examples

gr1 <- gdrisk(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
gr1
plot(gr1)

data <- ndvi_40[,1:3]
gr2 <- gdrisk(NDVIchange ~ ., data = data)
gr2



GD documentation built on Sept. 18, 2023, 9:09 a.m.