Skip to contents

plot.rrs_map visualizes a rrs_map object, displaying the geographical features such as buildings and roads. It leverages the sf package's plotting capbilities to render the map components.

Usage

# S3 method for class 'rrs_map'
plot(
  x,
  building_colour = "#f0e7d8",
  building_border = "#121212",
  road_colour = "#dbdbdb",
  road_border = "#121212",
  background_colour = NA,
  ...
)

Arguments

x

An object class rrs_map.

building_colour

The colour of the buildings.

building_border

The border colour of the buildings.

road_colour

The colour of the roads.

road_border

The border colour of the roads.

background_colour

The background colour of the plot.

...

Additional arguments passed to par.

Examples

gml <- system.file("extdata", "map-test.gml", package = "rrstools")
map <- read_rrs_map(gml)
plot(map)