routeDrawOptions: Options for Drawing Routes on the Map

Description Usage Arguments Value Examples

View source: R/routes.R

Description

Function to return a list of the desired drawing options - you can set colours, line weights and dash styles for each transport type, whether to show the source and target markers, and whether to show transfers between different modes of transport.

Usage

1
2
3
4
5
6
routeDrawOptions(showMarkers = TRUE, showTransfers = TRUE,
  walkColour = "green", walkWeight = 5, walkDashArray = "1,10",
  carColour = "blue", carWeight = 5, carDashArray = NULL,
  bikeColour = "orange", bikeWeight = 5, bikeDashArray = NULL,
  transitColour = "red", transitWeight = 5, transitDashArray = NULL,
  transferColour = "blue", transferRadius = 10)

Arguments

showMarkers

Whether to show the source/target markers.

showTransfers

whether to highlight transfers between different modes of transport.

walkColour, bikeColour, carColour, transitColour

Set the line colours.

walkWeight, bikeWeight, carWeight, transitWeight

Set the line weights.

walkDashArray, bikeDashArray, carDashArray, transitDashArray

Set the dash styles.

transferColour

Set the colour of transfer markers.

transferRadius

Set the size of transfer markers.

Value

A list of options governing how the routes are drawn on the map.

Examples

1
2
# show the list
routeDrawOptions()

TargomoR documentation built on Dec. 7, 2019, 1:07 a.m.