Learn R Programming

DEPONS2R (version 1.2.6)

plot,DeponsBlockdyn,missing-method: Plot a DeponsBlockdyn object

Description

Plot population dynamics simulated with DEPONS

Usage

# S4 method for DeponsBlockdyn,missing
plot(x, y, dilute = 5, ...)

Value

data.frame listing blocks where no animals were counted (returned invisibly)

Arguments

x

DeponsBlockdyn object

y

Not used

dilute

Integer. Plot only one in every 'dilute' values. Defaults to 5, which yields a plot of the first simulated value and one in every five of the following values.

...

Optional plotting parameters

Examples

Run this code
data("porpoisebdyn")
my.col <- c("red", "darkgreen", "orange")
plot(porpoisebdyn, col=my.col)
legend("bottomright", bty="n", fill=my.col, legend=paste("Block", 0:2))

# Show all data points for small range of x-values
plot(porpoisebdyn, xlim=c(1950, 2050), ylim=c(4850, 5050), type="p", dilute=1, col=my.col)

Run the code above in your browser using DataLab