| plot_leaflet | R Documentation | 
Convenience function to quickly plot geometries on a leaflet map.
plot_leaflet( data, popup = NULL, force = TRUE, colour = "#03F", col_group = NULL, n = 7, palette = "viridis", legend_pos = "topright", legend_title = NULL, opacity = 0.5, fill_opacity = 0.2, width = NULL, height = NULL, padding = 0, type, latitude = "latitude", longitude = "longitude", projection = projection_wgs84(), id = NA, ... )
| data | Spatial object or a data frame with coordinates | 
| popup | Vector of variables to be used as a popup on the map. | 
| force | Should the projection be forced to WGS84? Default is  | 
| colour | Colour of geometry. | 
| col_group | If the colour mapped on a numeric vector, how should the colours be grouped.
Default is  | 
| n | If the  | 
| palette | Colour pallette options passed to  | 
| legend_pos | Legend position. Accepts  | 
| legend_title | Legend title. | 
| opacity | Opacity of the edge of the geometry. | 
| fill_opacity | Internal opacity of the geometry. | 
| width | Width of the map | 
| height | Height of the map | 
| padding | Padding of the map | 
| type | If data is data frame, what type of spatial object it is. | 
| latitude, longitude | Columns for latitude and longitude | 
| projection | The projections system | 
| id | If the data type is not point, an id column with the groupings. | 
| ... | Other arguments passed to  | 
Invisible, a leaflet map.
Stuart K. Grange, Hao Wu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.