Skip to contents

Draws a figure-ground diagram: the streets in a single colour on a solid background, with no axes or margins. Cropping different places to the same extent makes their network form directly comparable, as in Boeing (2025).

Usage

ox_plot_figure_ground(g, bg = "black", col = "white", lwd = 1.2, title = NULL)

Arguments

g

An osm_graph.

bg, col

Background and street colours. Default white-on-black.

lwd

Street line width. Default 1.2.

title

Optional panel title.

Value

Invisibly, the osm_graph.

References

osmnxr is an R port of OSMnx. If you use it, please cite:

Boeing, G. (2025). Modeling and analyzing urban networks and amenities with OSMnx. Geographical Analysis, 57(4), 567–577. doi:10.1111/gean.70009

Examples

g <- example_osm_graph()
ox_plot_figure_ground(g)