Skip to contents

Map layer that draws a network. For more (total) flexibility, please use tm_edges and tm_nodes.

Usage

tm_network()

Examples

library(tmap)
library(sfnetworks)

load_all("../tmap")
#> Error in load_all("../tmap"): could not find function "load_all"
load_all()
#> Error in load_all(): could not find function "load_all"

sfn = as_sfnetwork(roxel)

tm_shape(sfn) +
  tm_network()

  
tm_shape(sfn) +
  tm_edges(col = "type", lwd = 4) +
  tm_nodes()