Learn R Programming

GD (version 10.5)

gdrisk: Geographical detectors: risk detector.

Description

Function for risk detector calculation, risk matrix and visualization.

Usage

gdrisk(formula, data = NULL)
# S3 method for gdrisk
print(x, ...)
# S3 method for 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

Run this code
gr1 <- gdrisk(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
gr1
plot(gr1)
# \donttest{
data <- ndvi_40[,1:3]
gr2 <- gdrisk(NDVIchange ~ ., data = data)
gr2
# }

Run the code above in your browser using DataLab