Skip to contents

autoplot.creel_schedule() produces a monthly tile calendar showing sampled dates coloured by day type (weekday / weekend) and unsampled dates in grey. Multiple months are shown as faceted panels.

Requires the ggplot2 package (listed in Suggests). Install it with install.packages("ggplot2") if needed.

Usage

# S3 method for class 'creel_schedule'
autoplot(object, title = "Creel Schedule", ...)

Arguments

object

A creel_schedule object from generate_schedule() or generate_bus_schedule().

title

Optional character string for the plot title. Defaults to "Creel Schedule".

...

Additional arguments (currently unused).

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
sched <- generate_schedule(
  start_date = "2024-06-01", end_date = "2024-07-31",
  n_periods = 1,
  sampling_rate = c(weekday = 0.3, weekend = 0.6),
  seed = 42
)
ggplot2::autoplot(sched)
} # }