
Plot a creel schedule as a ggplot2 tile calendar
Source:R/autoplot-methods.R
autoplot.creel_schedule.Rdautoplot.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.
Arguments
- object
A
creel_scheduleobject fromgenerate_schedule()orgenerate_bus_schedule().- title
Optional character string for the plot title. Defaults to
"Creel Schedule".- ...
Additional arguments (currently unused).
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)
} # }