powered by
Convert origin-destination coordinates into geographic desire lines
odc_to_sfc(odc)
A matrix containing coordinates representing line start and end points
(odc = od_coordinates(od_data_df, p = od::od_data_zones, sfnames = TRUE)) (l = odc_to_sfc(odc)) plot(l)
Run the code above in your browser using DataLab