Skip to content

Commit e35c453

Browse files
committed
Documentation for knitting.
1 parent d5250ca commit e35c453

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

inst/examples/graticule.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
library(leaflet)
22
# Default
3-
l <- leaflet() %>% addTiles() %>% setView(0,0,1)
3+
l <- leaflet() %>% addTiles() %>% setView(0,0,2)
44

5+
#' Default Graticule
56
l %>% addGraticule()
67

7-
# Custom Params
8+
#' <br/>
9+
#' Custom Params
810
l %>% addGraticule(interval = 40, style = list(color='#FF0000', weight=1))
911

10-
# on a toggleable Layer
12+
#' <br/>
13+
#' on a toggleable Layer
1114
l %>%
1215
addGraticule(group="graticule") %>%
1316
addLayersControl(

inst/examples/simpleGraticule.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ library(leaflet)
22
# Default
33
l <- leaflet() %>% addTiles() %>% setView(0,0,1)
44

5+
#' Default simple Graticule
56
l %>% addSimpleGraticule()
67

7-
# Custom Params
8+
#' <br/>
9+
#' Custom Params
810
l %>% addSimpleGraticule(interval = 40, showOriginLabel = F)
911

10-
# Custom Resolution + Custom Date and on a toggleable Layer
12+
#' <br/>
13+
#' Custom Resolution + Custom Date and on a toggleable Layer
1114
l %>%
1215
addSimpleGraticule(interval=40,
1316
showOriginLabel = F,

0 commit comments

Comments
 (0)