# Re-create Fig. 7a from AghaKouchak et al. (2011).
tmp <- matrix(0, 8, 8)
tmp[3,2:4] <- 1
tmp[5,4:6] <- 1
tmp[7,6:7] <- 1
Sindex(tmp)
# Two separate areas with highly structured shapes, but far away from each other.
data(pert000)
data(pert006)
data(ICPg240Locs)
hold <- make.SpatialVx(pert000, pert006, loc=ICPg240Locs,
projection=TRUE, map=TRUE,
field.type="Precipitation", units="mm/h",
data.name=c("ICP Perturbed Cases", "pert000", "pert006"))
plot(hold, set.pw=TRUE)
Sindex(hold)
Run the code above in your browser using DataLab