leaflet_plot | R Documentation |
Function to quickly plot spatial geometries on a leaflet map.
leaflet_plot(
sp,
popup = NULL,
force = TRUE,
colour = "#03F",
opacity = 0.5,
fill_opacity = 0.2,
hill_shading = FALSE
)
sp |
Spatial object to be plotted. |
popup |
Vector of variables to be used as a pop-up on the map. |
force |
Should the projection be forced to WGS84? |
colour |
Colour of geometry. |
opacity |
Opacity of the edge of the geometry. |
fill_opacity |
Internal opacity of the geometry. |
hill_shading |
Should hill shading be displayed on the map? |
A leaflet map.
Stuart K. Grange
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.