plot.osm | R Documentation |
Rudimentary rendering of OSM XML data, with one style per layer.
## S3 method for class 'osm' plot( x, layers = c("multipolygons", "multilinestrings", "lines", "points", "other_relations"), palette = c(1, 2, 3, 4, 6), ... )
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 |
A static visualisation
sb <- ox_read( system.file("extdata/south_brisbane.osm", package = "osmxml")) plot(sb, main = "South Brisbane")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.