Learn R Programming

GD (version 1.6)

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
# NOT RUN {
rm1 <- riskmean(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
rm1
plot(rm1)
# }
# NOT RUN {
data <- ndvi_40[,1:3]
rm2 <- riskmean(NDVIchange ~ ., data = data)
rm2
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab