plot.osm_graph: Plot an 'osm_graph'

View source: R/osm_graph.R

plot.osm_graphR Documentation

Plot an osm_graph

Description

Draws the street-network edges (and optionally nodes) using base sf plotting.

Usage

## S3 method for class 'osm_graph'
plot(x, nodes = FALSE, col = "#0d3b66", lwd = 0.7, ...)

Arguments

x

An osm_graph.

nodes

Logical; overlay node points. Default FALSE.

col, lwd

Passed to the edge geometry plot.

...

Further arguments passed to sf::plot.sf().

Value

Invisibly, the osm_graph.


osmnxr documentation built on Oct. 20, 2026, 1:07 a.m.