gdrisk {GD} | R 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
[Package GD version 10.3 Index]