Function for ecological detector calculation, ecological matrix and visulization.
Examples
ge1 <- gdeco(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
ge1
#> Ecological detector:
#> variable Climatezone Mining
#> 1 Climatezone <NA> <NA>
#> 2 Mining Y <NA>
# \donttest{
data <- ndvi_40[,1:3]
ge2 <- gdeco(NDVIchange ~ ., data = data)
ge2
#> Ecological detector:
#> variable Climatezone Mining
#> 1 Climatezone <NA> <NA>
#> 2 Mining Y <NA>
# }