Create origin-destination flows (odf) object, which is a list consisting of a data.frame with the od data, an sf object with spatial points and optionally, an sf object with spatial (poly)lines of the routes
1 |
E |
'data.frame' or 'sf' object of edges. If it is an 'sf', it should contain (MULTI)LINESTRING geometries |
U |
'sf' object of nodes. It should contain 'POINT' geometry. |
col_orig |
column of E (integer or name) that specifies the origin |
col_dest |
column of E (integer or name) that specifies the destination |
col_id |
column of U (integer or name) that specifies the id |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.