# NOT RUN {
data(puechabon)
# locs is the data frame containing the
# relocations of wild boars monitored by radio-tracking
locs <- puechabon$locs
# sa is the "kasc" object of maps of the study area
sa <- puechabon$kasc
# Buffer of 500 m around all relocations
bu <- buffer(locs[,4:5], sa, 500)
image(bu)
# displays all the pixels of the study area within 500 m
# of a relocation of each monitored wild boar
buani <- buffer.ani(locs[,4:5], locs[,1], sa, 500)
image(buani)
## buffer around a trajectory
data(puechcirc)
image(buffer.ltraj(puechcirc,sa, 100))
## buffer around a line
gc <- getcontour(getkasc(sa,1))
out <- buffer.line(gc[,2:3], sa, 300)
image(out)
lines(gc[,2:3], lwd=2)
# }
Run the code above in your browser using DataLab