plot_calendar: Plot the GTFS Service Calendar

View source: R/plot_calendar.R

plot_calendarR Documentation

Plot the GTFS Service Calendar

Description

Creates a calendar heatmap of scheduled trips by service date.

Usage

plot_calendar(
  gtfs,
  ncol = 4,
  facet_by_year = FALSE,
  fill = c("trips", "service_pattern")
)

Arguments

gtfs

A GTFS object.

ncol

Number of facet columns when 'facet_by_year = FALSE'.

facet_by_year

Logical. Arrange years in rows and months in columns.

fill

Calendar fill. '"trips"' shows trip counts and draws dates with no active service as zero trips; '"service_pattern"' uses a discrete color for each service pattern and labels dates with no active service as '"No service"'.

Value

A 'ggplot' object.

See Also

[GTFSwizard::get_servicepattern()]

Examples

plot_calendar(for_rail_gtfs, ncol = 4)
plot_calendar(
  for_rail_gtfs,
  facet_by_year = TRUE,
  fill = "service_pattern"
)


GTFSwizard documentation built on Aug. 21, 2026, 5:16 p.m.