leafem
provides extensions for package
leaflet
many of which are used by package
mapview
. The intention of this package is to enhance
leaflet
functionality to provide a more GIS-like feeling
when plotting spatial data interactively.
You can install the released version of leafem from CRAN with:
install.packages("leafem")
library(leaflet)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addFeatures(data = breweries91)
leaflet() %>%
addProviderTiles("OpenStreetMap") %>%
addMouseCoordinates()
library(leaflet)
<- leaflet() %>% addProviderTiles("OpenStreetMap")
m garnishMap(m, addMouseCoordinates)
library(leaflet)
library(raster)
<- leaflet() %>%
m addProviderTiles("OpenStreetMap") %>%
addCircleMarkers(data = breweries91) %>%
addHomeButton(extent(breweries91), "breweries91")
m
library(leaflet)
library(plainview)
leaflet() %>%
addProviderTiles("OpenStreetMap") %>%
addRasterImage(poppendorf[[1]], project = TRUE, group = "poppendorf",
layerId = "poppendorf") %>%
addImageQuery(poppendorf[[1]], project = TRUE,
layerId = "poppendorf") %>%
addLayersControl(overlayGroups = "poppendorf")
<- "https://www.r-project.org/logo/Rlogo.svg"
img
leaflet() %>% addTiles() %>% addLogo(img, url = "https://www.r-project.org/logo/")
Please note that the ‘leafem’ project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.