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.

Returns a ggplot2 object, which the package imports, so nothing extra needs installing.

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

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)