With tmap.networks
network visualizations can be made. It will handle
sfnetwork objects (from the package sfnetworks)
natively.
library(sfnetworks)
library(tmap.networks)
sfn = as_sfnetwork(roxel)Besides this new spatial data class "sfnetwork", this
package also features new map layers, albeit very basic so far:
tm_shape(sfn) +
tm_network()
#> [deprecated] The arguments `popup.vars` and `popup.format` of `tm_lines()` are
#> deprecated.
#> ℹ Use `popup` with `tm_popup()` instead, e.g. `popup = tm_popup(vars = ...,
#> format = ...)`.
#> This message is displayed once every 8 hours.

