Produces a quick visual summary of a creel_design object:
Without counts attached (
design$countsisNULL): a bar chart showing the number of sampled days per stratum.With counts attached: a jitter + crossbar chart showing the distribution of count values per stratum.
Both variants colour bars/points by stratum for easy differentiation.
Arguments
- design
A
creel_designobject created bycreel_design().- title
Optional character title. Defaults to
"Creel Design Summary"(no counts) or"Count Distribution by Stratum"(with counts).- ...
Additional arguments (currently ignored).
Examples
if (FALSE) { # \dontrun{
# Without counts — stratum sample sizes
cal <- data.frame(
date = as.Date(c(
"2024-06-01", "2024-06-02", "2024-06-08", "2024-06-09"
)),
day_type = c("weekday", "weekday", "weekend", "weekend")
)
design <- creel_design(cal, date = date, strata = day_type)
plot_design(design)
# With counts — count distribution per stratum
design_with_counts <- add_counts(design, counts_df)
plot_design(design_with_counts)
} # }
