plot.osm: Plot OSM data

View source: R/plot.osm.R

plot.osmR Documentation

Plot OSM data

Description

Rudimentary rendering of OSM XML data, with one style per layer.

Usage

## S3 method for class 'osm'
plot(
  x,
  layers = c("multipolygons", "multilinestrings", "lines", "points", "other_relations"),
  palette = c(1, 2, 3, 4, 6),
  ...
)

Arguments

x

Object of class 'osm'

layers

Character vector of names of items to plot

palette

Vector of colour values of same length as layers

...

Other arguments passed on to plot

Value

A static visualisation

Examples

sb <- ox_read(
  system.file("extdata/south_brisbane.osm",
              package = "osmxml"))
plot(sb, main = "South Brisbane")

stragu/osmexport documentation built on Aug. 7, 2022, 12:07 a.m.