Skip to content

Commit

Permalink
docs: tidy up function reference page
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-davison committed Jul 25, 2024
1 parent 92bc272 commit a10573a
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' @format A data frame containing `City`, `State`, `Lat`,
#' `Long`, and population estimates from 2000 to 2010 (columns
#' `Pop2000` to `Pop2010`).
#' @family built in datasets
#' @source The US Census Bureau:
#' <https://www.census.gov/data/datasets/time-series/demo/popest/intercensal-2000-2010-cities-and-towns.html>
#' @noRd
Expand All @@ -32,6 +33,7 @@ if (file.exists("inst/csv/uspop2000.csv")) {
#' @details This dataset contains storm tracks for selected storms
#' in the Atlantic Ocean basin for the year 2005
#' @format `sp::SpatialLinesDataFrame`
#' @family built in datasets
NULL

#' @docType data
Expand All @@ -41,6 +43,7 @@ NULL
#' @details This dataset comes from <https://gadm.org>.
#' It was downloaded using [getData()].
#' @format `sp::SpatialPolygonsDataFrame`
#' @family built in datasets
#' @source
#' <https://gadm.org>
NULL
Expand All @@ -55,4 +58,5 @@ NULL
#' University of Marburg for a seminar called
#' "The Geography of Beer, sustainability in the food industry"
#' @format `sp::SpatialPointsDataFrame`
#' @family built in datasets
NULL
6 changes: 6 additions & 0 deletions man/atlStorms2005.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/breweries91.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/gadmCHE.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 89 additions & 0 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,92 @@ redirects:
- ["shiny.html", "articles/shiny.html"]
- ["showhide.html", "articles/showhide.html"]
- ["map_widget.html", "articles/widget.html"]

reference:
- title: The Map Widget
desc: The map widget and methods to manipulate it
contents:
- leaflet
- setView
- mapOptions
- leafletSizingPolicy

- title: Graphics Elements
desc: Adding and removing grpahics
contents:
- addTiles
- tileOptions
- addProviderTiles
- providers
- addLegend
- addRasterImage
- addRasterLegend

- title: Layers & Groups
desc: Control groups and switch layers on and off
contents:
- addMapPane
- addLayersControl
- showGroup
- groupOptions

- title: Colors
desc: Map variables to colors
contents:
- colorFactor
- previewColors

- title: Icons
desc: Use icons in `leaflet::addMarkers()`
contents:
- icons
- makeIcon
- iconList

- title: Add-ons
desc: Utility functions to add additional functionality to a `{leaflet}` map
- subtitle: Awesome Markers
contents:
- addAwesomeMarkers
- awesomeIcons
- makeAwesomeIcon
- awesomeIconList
- subtitle: Other
contents:
- addMeasure
- addScaleBar
- addGraticule
- addSimpleGraticule
- addTerminator
- addMiniMap
- addEasyButton
- addEasyButtonBar

- title: Shiny
desc: Using leaflet in `{shiny}`
contents:
- leafletOutput
- leafletProxy
- removeControl

- title: Extending Leaflet
desc: Functions for extending leaflet
contents:
- derivePoints
- evalFormula
- expandLimits
- expandLimitsBbox
- filterNULL
- getMapData
- invokeMethod
- validateCoords
- leafletDependencies

- title: Built in datasets
desc: Spatail datasets exported by `{leaflet}`
contents:
- has_concept("built in datasets")

- title: Deprecated
contents:
- createLeafletMap

0 comments on commit a10573a

Please sign in to comment.