format() and print() summarise the accounting of a flowmap(): the
share of the volume drawn in corridors, kept inside places or groups, left
out by the filter and without a path; the number of places and segments
(and of junctions, when there are any);
in the lines mode, the categories with their share of the volume drawn;
the outputs asked for (TikZ, GeoJSON, interactive page), the warnings of the core
and the state of the schematic layout.
Details
plot() shows the SVG in the RStudio Viewer or in the web browser. It uses
'htmltools' when installed and otherwise opens a temporary SVG file with
utils::browseURL().
In 'knitr' and R Markdown documents a milkflow object prints as the SVG, inline, in HTML output; in other formats it prints the summary.
Examples
m <- flowmap(demo_nodes, demo_flows)
print(m)
#> <milkflow> 24 places (from 24 nodes), 25 segments, 5 width classes
#> Volume: 88,974 in 180 pairs (180 routed)
#> in corridors 98.1%
#> internal 1.9%
#> filtered out 0.0%
#> without a path 0.0%
#> Lines: 3 categories on 25 segments, 129 crossings at nodes
#> leisure 14.8% of the drawn volume
#> study 24.0% of the drawn volume
#> work 61.3% of the drawn volume
#> Detour: mean 1.10, max 5.09
format(m)[1]
#> [1] "<milkflow> 24 places (from 24 nodes), 25 segments, 5 width classes"
if (interactive()) plot(m)