# 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") > 180) {
## We prepare the data and split them by month:
GNIPDataDEmonthly <- prepdata(data = GNIPDataDE,
split.by = "month")
dim(GNIPDataDEmonthly)
## We fit the isoscapes:#'
isoscapemodels <- isomultifit(iso.data = GNIPDataDEmonthly,
mean.model.fix = list(elev = TRUE, lat.abs = TRUE))
## We build the annual isoscapes by simple averaging (equal weighting):
isoscapes <- isomultiscape(elevation.raster = ElevRasterDE,
isofit = isoscapemodels)
## We plot the mean isoscape of the averaging:
plot(x = isoscapes, which = "mean")
## We build the isoscapes for a given month (here January):
isoscape.jan <- isoscape(elevation.raster = ElevRasterDE,
isofit = isoscapemodels$multi.fits[["month_1"]])
## We plot the mean isoscape for January:
plot(x = isoscape.jan, which = "mean")
}
# }
Run the code above in your browser using DataLab