plot_map {cartographr} | R Documentation |
Plot a map with custom palette
Description
This function takes an 'osmdata' (osm) object and a palette name, preprocesses the map data if not already done, and plots the map using 'ggplot2' with the specified color palette.
Usage
plot_map(...)
Arguments
... |
Variable argument list:
|
Value
A ggplot
object representing the map with the chosen palette.
Examples
data("osm")
my_map <- osm |> plot_map(palette = 'gray')
[Package cartographr version 0.2.2 Index]