geom_roads: Adds a roads layer for the map

View source: R/vector_tile_helpers.R

geom_roadsR Documentation

Adds a roads layer for the map

Description

Adds a roads layer for the map

Usage

geom_roads(
  ...,
  color = "black",
  width = 0.1,
  nextzen_api_key = getOption("nextzen_API_key"),
  tile_size_px = NULL,
  transform = function(d) d[d$kind != "ferry", ]
)

Arguments

...

extra arguments

color

color for the roads

width

width of roads

nextzen_api_key

nextzen API key for vector tile data

tile_size_px

tile size in pixels, may increase resolution of tile data

transform

transform function to apply to the vector tile data, by default filter out ferry lines

Value

a geom_sf object with the layer


mountainMath/mountainmathHelpers documentation built on May 3, 2024, 5:55 p.m.