A short description... Average of traffic during a week, over a period for a segment or a subset of segment, for a transportation mode or more, for a direction or both.
Usage
gg_traffic_avg(
enriched_data,
date_range = NULL,
segments = NULL,
modes = c("heavy", "car"),
direction = "both",
weekday = NULL,
aggregated_by = "weekday"
)
Arguments
- enriched_data
enriched data.frame containing all the data for all your sensors
- date_range
Date vector. example: c('2021-01-01','2022-01-01'). Full period if NULL (default).
- segments
Character vector. Selected road segment, all if NULL (default).
- modes
Character vector. Different modes of transportation aggregated (heavy, car, bike, pedestrian) . Default: heavy & car
- direction
Character. Direction of the traffic (lft, rgt, both). Default to both.
- weekday
Character vector. Weekday choosen. Default to the all week.
- aggregated_by
Character. Options are: 'segment_name', 'weekday', 'direction', 'mode'. Default: 'weekday'.