plot_map | R Documentation |
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.
plot_map(...)
... |
Variable argument list:
|
A ggplot
object representing the map with the chosen palette.
data("osm")
my_map <- osm |> plot_map(palette = 'gray')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.