Description Usage Arguments Author(s) See Also Examples
plot.area
allows a graphical display of objects of class
"area"
.
1 2 3 4 5 |
x |
an object of class |
which |
a vector of character indicating the polygons to be plotted |
colpol |
a vector of the color for filling the polygon. The default,
|
colborder |
a vector of the color to draw the border. The
default. Use |
lwd |
the border width, a positive number |
add |
logical. if |
... |
additional arguments to be passed to the generic function
|
Clement Calenge clement.calenge@oncfs.gouv.fr
area.plot
for another way to display
objects of class "area"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Loading the relocations of wild boars
## monitored using radio-tracking
data(puechabon)
locs <- puechabon$locs
el <- getkasc(puechabon$kasc, "Elevation")
## Estimation of the MCP home ranges of the animals
cp <- mcp(locs[,4:5], locs[,1])
## Use of plot.area to display the results
plot(cp)
## different colors:
color <- c("red", "blue", "green", "yellow")
lev <- levels(cp[,1])
image(el)
plot(cp, colpol = color, add = TRUE)
legend(697198, 3165529, legend = lev, fill = color)
## or:
image(el)
plot(cp, colborder = color, colpol = NA, add = TRUE)
legend(697198, 3165529, legend = lev, fill = color)
## plots one animal
image(el)
plot(cp, which = "Brock", add = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.