# NOT RUN {
## The examples below will only be run if sufficient time is allowed
## You can change that by typing e.g. IsoriX.options(example_maxtime = XX)
## if you want to allow for examples taking up to ca. XX seconds to run
## (so don't write XX but put a number instead!)
if(IsoriX.getOption("example_maxtime") > 30) {
## We prepare the data
GNIPDataDEagg <- queryGNIP(data = GNIPDataDE)
## We fit the models
GermanFit <- isofit(iso.data = GNIPDataDEagg,
mean.model.fix = list(elev = TRUE, lat.abs = TRUE))
## We build the isoscapes
isoscape <- isoscape(elevation.raster = ElevRasterDE,
isofit = GermanFit)
isoscape
## We build the plots
plot.mean <- plot(x = isoscape, which = "mean", plot = FALSE)
plot.mean.predVar <- plot(x = isoscape, which = "mean.predVar", plot = FALSE)
plot.mean.residVar <- plot(x = isoscape, which = "mean.residVar", plot = FALSE)
plot.mean.respVar <- plot(x = isoscape, which = "mean.respVar", plot = FALSE)
## We display the plots
if(require(lattice)) {
print(plot.mean, split = c(1, 1, 2, 2), more = TRUE)
print(plot.mean.predVar, split = c(2, 1, 2, 2), more = TRUE)
print(plot.mean.residVar, split = c(1, 2, 2, 2), more = TRUE)
print(plot.mean.respVar, split = c(2, 2, 2, 2), more = FALSE)
}
}
# }
Run the code above in your browser using DataLab