Skip to contents

Draws origin-destination flows (commuting, migration, trade) as maps that stay readable: the flows are aggregated, filtered and routed through a few shared corridors, and drawn with classed line widths, in the style of a transit map, optionally on an octilinear schematic layout. Flows with categories become parallel lines along the corridors, ordered to cross little. The pairs that design the corridors can be chosen by the dominant flows of Nystuen and Dacey (1961) doi:10.1007/BF01969070 or by the disparity backbone of Serrano, Boguna and Vespignani (2009) doi:10.1073/pnas.0808904106 , among other filters. Reports how much of the volume is drawn, internal or left out. The computation is done by the bundled 'Rust' library of the package, so that the same input gives the same figure, byte for byte, in every language that binds it. Output is 'SVG', 'TikZ', 'GeoJSON', an interactive 'HTML' page and a 'JSON' drawing specification.

Details

The main function is flowmap(); flowmap_json() is the low-level door to the Rust library. See vignette("milkflow").

Author

Maintainer: André Leite leite@castlab.org (ORCID) [copyright holder]

Authors:

Other contributors:

  • The authors of the dependency Rust crates (Rust crates bundled in src/rust/vendor.tar.xz; see inst/AUTHORS and LICENSE.note) [contributor, copyright holder]