plot_map_trips: Plot start and end coordinates of the given trips table on an...

View source: R/output_trips.R

plot_map_tripsR Documentation

Plot start and end coordinates of the given trips table on an osm map

Description

Plot start and end coordinates of the given trips table on an osm map

Usage

plot_map_trips(trips_table, crs, optimized = FALSE, shape_table = NULL)

Arguments

trips_table

tibble of trips_output (from read_output_trips)

crs

numeric representation of the EPSG code or proj4string for the corresponding coordinate system of the trip coordinates, can be found in network file from output directory of MATSim simulation

optimized

optional, boolean, by default FALSE and creates interactive plot using leaflet, if TRUE uses ggplot

shape_table

optional, sf object(data frame with geometries), can be created using st_read(), is used to categorize the trips, used as a background, default is NULL

Value

leaflet/ggplot plot with trips start-, end- points


matsim-vsp/matsim-r documentation built on Feb. 3, 2025, 6:48 p.m.