get_routes_sldf: Get shapes spatial data for given route ids

View source: R/map-gtfs-helpers.R

get_routes_sldfR Documentation

Get shapes spatial data for given route ids

Description

Get shapes spatial data for given route ids

Usage

get_routes_sldf(gtfs_obj, route_ids, service_ids, shape_ids, route_opacity,
  route_colors)

Arguments

gtfs_obj

A GTFS list object with components agency_df, etc.

route_ids

Vector (Character). IDs for routes of interest.

service_ids

Vector (Character). Service IDs. NULL by Default.

shape_ids

Vector (Character). Shape IDs. NULL by Default.

route_opacity

Numeric. Value must be between 0 and 1. Default is NULL.

route_colors

Character. Names of colors (e.g. "blue") or hex values (e.g. '#000000').

Value

Environment containing spatial data, labels, colorings used for plotting


ropenscilabs/gtfsr documentation built on June 11, 2022, 9:45 p.m.