gdrisk: Geographical detectors: risk detector.

Description Usage Arguments Examples

View source: R/gdrisk.R

Description

Function for risk detector calculation, risk matrix and visualization.

Usage

1
2
3
4
5
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

1
2
3
4
5
6
7
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 April 27, 2021, 9:07 a.m.