library(leaflet)
# Default
l <- leaflet() %>% addTiles() %>% setView(0,0,2)

Default Graticule

l %>% addGraticule()


Custom Params

l %>% addGraticule(interval = 40, style = list(color='#FF0000', weight=1))


on a toggleable Layer

l %>%
  addGraticule(group="graticule") %>%
  addLayersControl(
    overlayGroups = c("graticule"),
    options = layersControlOptions(collapsed = FALSE)
  )

The "leaflet" R package is copyright © 2014-2016 RStudio, Inc.
The Leaflet JavaScript library is © 2010–2016 Vladimir Agafonkin, 2010–2011 CloudMade.
Maps © OpenStreetMap contributors unless otherwise noted.

Fork me on GitHub