Description Usage Arguments Value Examples
Plot spatial discretization matrix.
1 |
discmatrix |
A matrix of spatial discretization |
group |
A vector of groups |
A data frame of spatial discretization matrix, which includes mean Q values in each group.
1 2 3 4 5 6 7 8 | library(GD)
f1 <- formula(NDVIchange ~ Tempchange + Precipitation + Popdensity)
odc1 <- optidisc(f1, ndvi_40, discmethod = "quantile", discitv = c(3:20))
xvar <- all.vars(f1)[-1]
nx <- length(xvar)
dm <- do.call(data.frame, lapply(1:nx, function(u) odc1[[u]]$qv.matrix))
names(dm) <- xvar
pd <- plotdisc(discmatrix = dm, group = rep(1:6, each = 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.