## Prediction for georamps example results
if (FALSE) {
ct <- map("state", "connecticut", plot = FALSE)
lon <- seq(min(ct$x, na.rm = TRUE), max(ct$x, na.rm = TRUE), length = 20)
lat <- seq(min(ct$y, na.rm = TRUE), max(ct$y, na.rm = TRUE), length = 15)
grid <- expand.grid(lon, lat)
newsites <- data.frame(lon = grid[,1], lat = grid[,2],
measurement = 1)
NURE.pred <- predict(NURE.fit, newsites)
par(mfrow=c(2,1))
plot(NURE.pred, func = function(x) exp(mean(x)),
database = "state", regions = "connecticut",
resolution = c(200, 150), bw = 5,
main = "Posterior Mean",
legend.args = list(text = "ppm", side = 3, line = 1))
plot(NURE.pred, func = function(x) exp(sd(x)),
database = "state", regions = "connecticut",
resolution = c(200, 150), bw = 5,
main = "Posterior Standard Deviation",
legend.args = list(text = "ppm", side = 3, line = 1))
}
Run the code above in your browser using DataLab