This function plots observed counts per unit of effort over time, for each method-location combination in a birp_data object.
# S3 method for birp_data
plot(
x,
col = 1:length(x$locations),
lwd = 1,
lty = 1:length(x$method_names),
pch = 1:length(x$CI_groups),
xlab = "time",
ylab = "counts per unit of effort",
legend.x = "topright",
legend.y = NULL,
legend.bty = "o",
xlim = range(as.numeric(x$times)),
ylim = NA,
...
)No return value. Called for side effects.
A birp_data object to be plotted.
A vector of colors, recycled to match the number of locations.
A vector of line widths, recycled to match the number of method-location combinations.
A vector of line types, recycled to match the number of methods.
A vector of plotting characters, recycled to match the number of control-intervention (CI) groups.
Label for the x-axis.
Label for the y-axis.
The x-position for the legend. Use NA to omit the legend.
The y-position for the legend.
Box type for the legend; either "o" (default) or "n".
Numeric vector specifying the x-axis limits.
Numeric vector specifying the y-axis limits. If NA, limits are computed automatically.
Additional graphical parameters passed to plot() or lines().
data <- simulate_birp()
plot(data)
Run the code above in your browser using DataLab