geom_mapbox_roads: Adds a roads layer for the map

View source: R/mapbox_vetor_tiles.R

geom_mapbox_roadsR Documentation

Adds a roads layer for the map

Description

Adds a roads layer for the map

Usage

geom_mapbox_roads(
  ...,
  color = "black",
  width = 0.1,
  zoom = NULL,
  max_tiles = 5,
  transform = function(d) d[d$class %in% c("street", "primary", "secondary",
    "tertiary", "motorway"), ]
)

Arguments

...

extra arguments

color

color for the roads

width

width of roads

zoom

optional, zoom level for tiles

max_tiles

Maximum number of tiles to query, overrides desired zoom level.

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.