## Not run:
# ## The following example takes some time and will therefore not
# ## be run unless you type: example(Isorix, run.dontrun=TRUE)
#
# data(calibrationdata)
# data(assignmentdata)
# data(elevationrastersmall)
# data(worldcountries)
# data(oceanmask)
# data(GNIP_Model)
#
# ## prepare the elevation raster
# elevationraster <- RElevate(
# elevation.raster=elevationrastersmall,
# isofit=GNIP_Model)
#
# ## build the isoscape
# isoscape <- Isoscape(
# elevation.raster=elevationraster,
# isofit=GNIP_Model)
#
# ## fit the calibration model
# calib <- Calibfit(
# calib.data=calibrationdata,
# isofit=GNIP_Model)
#
#
# ## perform the assignment on land and water
# assignment <- Isorix(
# assign.data=subset(assignmentdata,
# species=="Myotis_bechsteinii"),
# isoscape=isoscape,
# calibfit=calib)
#
# assignment
#
#
# ## perform the assignment on land only
# assignment.dry <- Isorix(
# assign.data=subset(assignmentdata,
# species=="Myotis_bechsteinii"),
# isoscape=isoscape,
# calibfit=calib,
# mask=oceanmask)
#
# ## plot the group assignment
# plot(assignment, who="group") ## without decoration
#
# plot(assignment.dry, who="group") ## without decoration
#
# plot(assignment.dry, who="group",
# borders=list(borders=worldcountries),
# mask=list(mask=oceanmask))
#
# ## plot the assignment for the 4 first individuals
# plot(assignment.dry, who=1:4,
# borders=list(borders=worldcountries),
# mask=list(mask=oceanmask),
# sources=list(draw=FALSE),
# calib= list(draw=FALSE))
#
# ## plot the assignment for the individual "Mbe_8"
# plot(assignment.dry, who="Mbe_8",
# borders=list(borders=worldcountries),
# mask=list(mask=oceanmask))
#
# ## End(Not run)
Run the code above in your browser using DataLab