Skip to contents

Takes the tibble created by read_output_trips and an sf object (can be created using the function st_read()) to first use the function process_append_spatialcat to categorize all trips into the following spatial categories: - inside: trips that start and end inside the given shape - originating: trips that start inside the shape and end outside of the shape - destinating: trips that end inside the shape and start outside of the shape - outside: trips that start and end outside of the shape

Usage

plot_spatialtype_by_shape_piechart(trips_table, shape_table, crs)

Arguments

trips_table

tibble of trips_output (from read_output_trips)

shape_table

sf object (data frame with geometries), can be created using st_read(), is used to categorize the 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

Value

Pie chart showing the percentage of each type of trip

Details

In a next step the results are summarized in a pie chart.