0

This may be an easy question but for some reason can't figure out how to add labels to each region or polygon in my real map. How can I add the NAME_ASCI names to this map?

library(mapview)
library(leaflet)

class(franconia)
  head(franconia)           
 mapview(franconia, alpha.regions = 0.2, aplha = 1)  #Whats the option in mapview to add labels?
3
  • mapview(franconia, alpha.regions = 0.2, aplha = 1, label = "NAME_ASCI")
    – TimSalabim
    Commented Dec 21, 2023 at 8:21
  • I am not able to see the label on the regions. @TimSalabim How can I make the label bigger and red color?
    – Salvador
    Commented Dec 21, 2023 at 17:19
  • This code prints labels but no the map of franconia mapview(franconia) %>% addStaticLabels(., label = franconia$NAME_ASCI) I wonder why.
    – Salvador
    Commented Dec 21, 2023 at 18:14

0

Browse other questions tagged or ask your own question.