Description Usage Arguments Value Author(s) See Also Examples
ascgen
creates an object of class asc
using
a set of points.
1 |
xy |
a data frame with two columns containing the x and y coordinates of the points |
cellsize |
the |
nrcol |
the size of the square raster map to be created (number of rows and columns) |
count |
logical. If |
Returns an object of class asc
.
Clement Calenge clement.calenge@oncfs.gouv.fr
asc
for additional information on objects
of class asc
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(puechabon)
lo <- puechabon$locs[,c("X","Y")]
plot(lo, asp = 1, pch = 16)
## lo contains the relocations of wild boars
rast <- ascgen(lo, cellsize = 100)
image(rast)
## Alternatively, one can specify the size of the square raster map
rast <- ascgen(lo, nrcol = 10)
rast
image(rast)
## can be used for further analyses
## (e.g. correspondence analyses)
locs <- puechabon$locs[, c("Name", "X", "Y")]
o <- count.points.id(locs[,2:3], locs[,1], rast)
image(o)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.