Plot popn Object

Description

Display animal locations from a popn object.

Usage

1
2
3
## S3 method for class 'popn'
plot(x, add = FALSE, frame = TRUE,  
    circles = NULL, ...)

Arguments

x

object of class popn

add

logical to add points to an existing plot

frame

logical to add frame or polygon within which points were simulated

circles

vector giving the radii if circles are to be plotted

...

arguments passed to eqscplot and points or symbols

Details

If circles is provided then a circle of the given radius is plotted for each animal using the symbols function. The arguments fg and bg may be used to control the colour of the perimeter and the fill of each circle (see Examples).

See Also

popn, sim.popn

Examples

1
2
3
4
5
6
7
temppopn <- sim.popn(D = 5, expand.grid(
    x = c(0,100), y = c(0,100)))
plot(temppopn, pch = 16, col = "blue")

plot(temppopn, circles = 20, bg = "tan", fg =
    "white")
plot(temppopn, pch = 16, cex = 0.5, add = TRUE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.