adehabitat (version 1.8.20)

squirreloc: Radio-tracking of squirrels

Description

This data set contains the trajectories of 15 radio-monitored squirrels, as well as the vector maps of habitat composition.

Usage

data(squirreloc)

Arguments

Format

This data set is a list of two objects:

  • locsis a data frame containing the relocations of 15 squirrels (with three columns: id, x, y

  • mapis an object of class area containing the habitat composition of the area. The habitat types and colour coding are stored in the attribute "info" of this object

Details

The dataset squirreloc comes from the Ranges VI software. It has been used to illustrate the compositional analysis (see ?compana) and the eigenanalysis of selection ratios (see ?eisera). See also the dataset squirrel.

Examples

Run this code
# NOT RUN {
data(squirreloc)


## habitat:
are <- squirreloc$map
co <- attr(are, "info")
plot(are, colp = co[,2])

legend(-10, 210, unique(co[,1]),
       unique(co[,2]), bg="white")



## relocations
locs <- squirreloc$locs
li <- split(locs[,2:3], locs[,1])
opar <- par(mfrow=n2mfrow(length(li)), mar=c(0,0,2,0))
lapply(1:length(li), function(i) {
plot(are, colp = co[,2], main=names(li)[i], axes=FALSE)
points(li[[i]], pch=16, cex=1.5)
box()
})
par(opar)

# }

Run the code above in your browser using DataLab