Learn R Programming

GD (version 10.5)

riskmean: Geographical detectors: risk means in risk detector.

Description

Function for calculating risk means within intervals and visualization.

Usage

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

...

ignore

Examples

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

Run the code above in your browser using DataLab