Elementy wyróżnienia

Interaktywne mapy z leaflet w R

Rich Majerus

Vice President of Strategy & Planning, Queens University of Charlotte

Wyszukiwanie uczelni

ca_public <- ipeds %>%
    filter(sector_label == "Public", state == "CA")

ca_public %>% leaflet() %>% addProviderTiles("Esri") %>% addCircleMarkers(radius = 2, label = ~htmlEscape(name), color = ~pal(sector_label), group = "Public") %>%
addSearchFeatures(targetGroups = 'Public', options = searchFeaturesOptions(zoom = 10))
Interaktywne mapy z leaflet w R
# search for markers
 addSearchFeatures(
         targetGroups = 'Public')

addSearchFeatures() 1

addSearchFeatures(options =
 searchFeaturesOptions(zoom = 10),
 targetGroups = 'Public')

addSearchFeatures() 2

Interaktywne mapy z leaflet w R

Grupowanie uczelni

ipeds  %>% 
  leaflet() %>% 
      addTiles() %>% 
      addCircleMarkers(radius = 2, 
                       color = ~pal(sector_label),
                       clusterOptions = markerClusterOptions())

Grupowanie znaczników 1

Interaktywne mapy z leaflet w R

Grupowanie uczelni

Grupowanie znaczników 2

Interaktywne mapy z leaflet w R

Ćwiczmy!

Interaktywne mapy z leaflet w R

Preparing Video For Download...