| plot.birp_data | R Documentation |
This function plots observed counts per unit of effort over time, for each method-location combination in a birp_data object.
## S3 method for class '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,
...
)
x |
A |
col |
A vector of colors, recycled to match the number of locations. |
lwd |
A vector of line widths, recycled to match the number of method-location combinations. |
lty |
A vector of line types, recycled to match the number of methods. |
pch |
A vector of plotting characters, recycled to match the number of control-intervention (CI) groups. |
xlab |
Label for the x-axis. |
ylab |
Label for the y-axis. |
legend.x |
The x-position for the legend. Use |
legend.y |
The y-position for the legend. |
legend.bty |
Box type for the legend; either |
xlim |
Numeric vector specifying the x-axis limits. |
ylim |
Numeric vector specifying the y-axis limits. If |
... |
Additional graphical parameters passed to |
No return value. Called for side effects.
data <- simulate_birp()
plot(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.