Skip to content

Commit

Permalink
roxygen2md::roxygen2md()
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Sep 18, 2023
1 parent c5f0240 commit c337b02
Show file tree
Hide file tree
Showing 75 changed files with 565 additions and 565 deletions.
30 changes: 15 additions & 15 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#' World and Netherlands map
#'
#' Maps of the world and the Netherlands (province and municipality level), class \code{\link[sf:sf]{sf}}
#' Maps of the world and the Netherlands (province and municipality level), class [sf::sf()]
#'
#' The default projections for these maps are Eckhart IV (World) and Rijksdriehoekstelsel (Netherlands). See below. The projection can be changed temporarily for plotting purposes by using the projection argument of \code{\link{tm_shape}}.
#' The default projections for these maps are Eckhart IV (World) and Rijksdriehoekstelsel (Netherlands). See below. The projection can be changed temporarily for plotting purposes by using the projection argument of [tm_shape()].
#'
#' \code{World} World map. The default projection for this world map is Eckhart IV since area sizes are preserved, which is a very important property for choropleths.
#' `World` World map. The default projection for this world map is Eckhart IV since area sizes are preserved, which is a very important property for choropleths.
#'
#' \code{NLD_prov} and \code{NLD_muni}, maps of the Netherlands at province and municipality level of 2013. The used projection is the Rijksdriehoekstelsel projection. \strong{Important:} publication of these maps is only allowed when cited to Statistics Netherlands (CBS) and Kadaster Nederland as source.
#' `NLD_prov` and `NLD_muni`, maps of the Netherlands at province and municipality level of 2013. The used projection is the Rijksdriehoekstelsel projection. **Important:** publication of these maps is only allowed when cited to Statistics Netherlands (CBS) and Kadaster Nederland as source.
#'
#' @usage data(World)
#' @name World
#' @rdname Shapes
#' @docType data
#' @source \url{https://www.naturalearthdata.com/} for \code{World}
#' @source \url{https://happyplanetindex.org/} for \code{World}
#' @source \url{https://www.cbs.nl/} for \code{NLD_prov} and \code{NLD_muni}.
#' @references Statistics Netherlands (2014), The Hague/Heerlen, Netherlands, \url{https://www.cbs.nl/}.
#' @references Kadaster, the Netherlands' Cadastre, Land Registry, and Mapping Agency (2014), Apeldoorn, Netherlands, \url{https://www.kadaster.nl/}.
#' @source <https://www.naturalearthdata.com/> for `World`
#' @source <https://happyplanetindex.org/> for `World`
#' @source <https://www.cbs.nl/> for `NLD_prov` and `NLD_muni`.
#' @references Statistics Netherlands (2014), The Hague/Heerlen, Netherlands, <https://www.cbs.nl/>.
#' @references Kadaster, the Netherlands' Cadastre, Land Registry, and Mapping Agency (2014), Apeldoorn, Netherlands, <https://www.kadaster.nl/>.
NULL

#' @usage data(NLD_prov)
Expand All @@ -33,34 +33,34 @@ NULL

#' Spatial data of rivers
#'
#' Spatial data of rivers, of class \code{\link[sf:sf]{sf}}
#' Spatial data of rivers, of class [sf::sf()]
#'
#' @usage data(rivers)
#' @name rivers
#' @docType data
#' @source \url{https://www.naturalearthdata.com}
#' @source <https://www.naturalearthdata.com>
NULL

#' Spatial data of metropolitan areas
#'
#' Spatial data of metropolitan areas, of class \code{\link[sf:sf]{sf}}. The data includes a population times series from 1950 to (forecasted) 2030. All metro areas with over 1 million inhabitants in 2010 are included.
#' Spatial data of metropolitan areas, of class [sf::sf()]. The data includes a population times series from 1950 to (forecasted) 2030. All metro areas with over 1 million inhabitants in 2010 are included.
#'
#' @usage data(metro)
#' @name metro
#' @docType data
#' @references United Nations, Department of Economic and Social Affairs, Population Division (2014). World Urbanization Prospects: The 2014 Revision, CD-ROM Edition.
#' @source \url{https://population.un.org/wup/}
#' @source <https://population.un.org/wup/>
NULL

#' Spatial data of global land cover
#'
#' Spatial data of global land cover, percent tree cover, and elevation of class \code{\link[stars:st_as_stars]{stars}}.
#' Spatial data of global land cover, percent tree cover, and elevation of class [`stars()`][stars::st_as_stars].
#' Two attributes in this object relates to global land cover.
#' The cover layer classifies the status of land cover of the whole globe into 20 categories, while
#' the cover_cls layer uses 8 simplified categories.
#' Percent Tree Cover (trees) represents the density of trees on the ground, and the last attribute represents elevation.
#'
#' \strong{Important:} publication of these maps is only allowed when cited to Tateishi et al. (2014), and when "Geospatial Information Authority of Japan, Chiba University and collaborating organizations." is shown.
#' **Important:** publication of these maps is only allowed when cited to Tateishi et al. (2014), and when "Geospatial Information Authority of Japan, Chiba University and collaborating organizations." is shown.
#'
#' @usage data(land)
#' @name land
Expand Down
98 changes: 49 additions & 49 deletions R/pkg.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,108 +2,108 @@
#'
#' Thematic maps are geographical maps in which spatial data distributions are visualized. This package offers a flexible, layer-based, and easy to use approach to create thematic maps, such as choropleths and bubble maps. It is based on the grammar of graphics, and resembles the syntax of ggplot2.
#'
#' This page provides a brief overview of all package functions. See \href{../doc/tmap-getstarted.html}{\code{vignette("tmap-getstarted")}} for a short introduction with examples.
#' This page provides a brief overview of all package functions. See [`vignette("tmap-getstarted")`](../doc/tmap-getstarted.html) for a short introduction with examples.
#'
#' @section Quick plotting method:
#' \tabular{ll}{
#' \code{\link{qtm}}\tab Plot a thematic map \cr
#' [qtm()]\tab Plot a thematic map \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' @section Main plotting method:
#' Shape specification:
#' \tabular{ll}{
#' \code{\link{tm_shape}}\tab Specify a shape object \cr
#' [tm_shape()]\tab Specify a shape object \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' Aesthetics base layers:
#' \tabular{ll}{
#' \code{\link{tm_polygons}}\tab Create a polygon layer (with borders) \cr
#' \code{\link{tm_symbols}}\tab Create a layer of symbols \cr
#' \code{\link{tm_lines}}\tab Create a layer of lines \cr
#' \code{\link{tm_raster}}\tab Create a raster layer \cr
#' \code{\link{tm_text}}\tab Create a layer of text labels \cr
#' \code{\link{tm_basemap}}\tab Create a layer of basemap tiles \cr
#' \code{\link{tm_tiles}}\tab Create a layer of overlay tiles \cr
#' [tm_polygons()]\tab Create a polygon layer (with borders) \cr
#' [tm_symbols()]\tab Create a layer of symbols \cr
#' [tm_lines()]\tab Create a layer of lines \cr
#' [tm_raster()]\tab Create a raster layer \cr
#' [tm_text()]\tab Create a layer of text labels \cr
#' [tm_basemap()]\tab Create a layer of basemap tiles \cr
#' [tm_tiles()]\tab Create a layer of overlay tiles \cr
#' }
#'
#' Aesthetics derived layers:
#' \tabular{ll}{
#' \code{\link{tm_fill}}\tab Create a polygon layer (without borders) \cr
#' \code{\link{tm_borders}}\tab Create polygon borders \cr
#' \code{\link{tm_bubbles}}\tab Create a layer of bubbles \cr
#' \code{\link{tm_squares}}\tab Create a layer of squares \cr
#' \code{\link{tm_dots}}\tab Create a layer of dots \cr
#' \code{\link{tm_markers}}\tab Create a layer of markers \cr
#' \code{\link{tm_iso}}\tab Create a layer of iso/contour lines \cr
#' \code{\link{tm_rgb}}\tab Create a raster layer of an image \cr
#' [tm_fill()]\tab Create a polygon layer (without borders) \cr
#' [tm_borders()]\tab Create polygon borders \cr
#' [tm_bubbles()]\tab Create a layer of bubbles \cr
#' [tm_squares()]\tab Create a layer of squares \cr
#' [tm_dots()]\tab Create a layer of dots \cr
#' [tm_markers()]\tab Create a layer of markers \cr
#' [tm_iso()]\tab Create a layer of iso/contour lines \cr
#' [tm_rgb()]\tab Create a raster layer of an image \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' Faceting (small multiples)
#' \tabular{ll}{
#' \code{\link{tm_facets}}\tab Define facets \cr
#' [tm_facets()]\tab Define facets \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' Attributes:
#' \tabular{ll}{
#' \code{\link{tm_grid}}\tab Create grid lines \cr
#' \code{\link{tm_scale_bar}}\tab Create a scale bar \cr
#' \code{\link{tm_compass}}\tab Create a map compass \cr
#' \code{\link{tm_credits}}\tab Create a text for credits \cr
#' \code{\link{tm_logo}}\tab Create a logo \cr
#' \code{\link{tm_xlab} and \link{tm_ylab}}\tab Create axis labels \cr
#' \code{\link{tm_minimap}}\tab Create a minimap (view mode only) \cr
#' [tm_grid()]\tab Create grid lines \cr
#' [tm_scale_bar()]\tab Create a scale bar \cr
#' [tm_compass()]\tab Create a map compass \cr
#' [tm_credits()]\tab Create a text for credits \cr
#' [tm_logo()]\tab Create a logo \cr
#' `[tm_xlab] and [tm_ylab]`\tab Create axis labels \cr
#' [tm_minimap()]\tab Create a minimap (view mode only) \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' Layout element:
#' \tabular{ll}{
#' \code{\link{tm_layout}}\tab Adjust the layout (main function)\cr
#' \code{\link{tm_legend}}\tab Adjust the legend \cr
#' \code{\link{tm_view}}\tab Configure the interactive view mode \cr
#' \code{\link{tm_style}}\tab Apply a predefined style \cr
#' \code{\link{tm_format}}\tab Apply a predefined format \cr
#' [tm_layout()]\tab Adjust the layout (main function)\cr
#' [tm_legend()]\tab Adjust the legend \cr
#' [tm_view()]\tab Configure the interactive view mode \cr
#' [tm_style()]\tab Apply a predefined style \cr
#' [tm_format()]\tab Apply a predefined format \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' Change options:
#' \tabular{ll}{
#' \code{\link{tmap_mode}}\tab Set the tmap mode: \code{"plot"} or \code{"view"}\cr
#' \code{\link{ttm}}\tab Toggle between the modes \cr
#' \code{\link{tmap_options}}\tab Set global tmap options (from \code{\link{tm_layout}}, \code{\link{tm_view}}, and a couple of others) \cr
#' \code{\link{tmap_style}}\tab Set the default style \cr
#' [tmap_mode()]\tab Set the tmap mode: `"plot"` or `"view"`\cr
#' [ttm()]\tab Toggle between the modes \cr
#' [tmap_options()]\tab Set global tmap options (from [tm_layout()], [tm_view()], and a couple of others) \cr
#' [tmap_style()]\tab Set the default style \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' Create icons:
#' \tabular{ll}{
#' \code{\link{tmap_icons}}\tab Specify icons for markers or proportional symbols \cr
#' [tmap_icons()]\tab Specify icons for markers or proportional symbols \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#'
#' @section Output functions:
#' \tabular{ll}{
#' \code{\link{print}}\tab Plot in graphics device or view interactively in web browser or RStudio's viewer pane \cr
#' \code{\link{tmap_last}}\tab Redraw the last map \cr
#' \code{\link{tmap_leaflet}}\tab Obtain a leaflet widget object \cr
#' \code{\link{tmap_animation}}\tab Create an animation \cr
#' \code{\link{tmap_arrange}}\tab Create small multiples of separate maps \cr
#' \code{\link{tmap_save}}\tab Save thematic maps (either as image or HTML file) \cr
#' [print()]\tab Plot in graphics device or view interactively in web browser or RStudio's viewer pane \cr
#' [tmap_last()]\tab Redraw the last map \cr
#' [tmap_leaflet()]\tab Obtain a leaflet widget object \cr
#' [tmap_animation()]\tab Create an animation \cr
#' [tmap_arrange()]\tab Create small multiples of separate maps \cr
#' [tmap_save()]\tab Save thematic maps (either as image or HTML file) \cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
#' @section Spatial datasets:
#' \tabular{ll}{
#' \code{\link{World}}\tab World country data (\code{\link[sf:sf]{sf}} object of polygons) \cr
#' \code{\link{NLD_prov}}\tab Netherlands province data (\code{\link[sf:sf]{sf}} object of polygons) \cr
#' \code{\link{NLD_muni}}\tab Netherlands municipal data (\code{\link[sf:sf]{sf}} object of polygons) \cr
#' \code{\link{metro}}\tab Metropolitan areas (\code{\link[sf:sf]{sf}} object of points) \cr
#' \code{\link{rivers}}\tab Rivers (\code{\link[sf:sf]{sf}} object of lines) \cr
#' \code{\link{land}}\tab Global land cover (\code{\link[stars:st_as_stars]{stars}} object)\cr
#' [World()]\tab World country data ([sf::sf()] object of polygons) \cr
#' [NLD_prov()]\tab Netherlands province data ([sf::sf()] object of polygons) \cr
#' [NLD_muni()]\tab Netherlands municipal data ([sf::sf()] object of polygons) \cr
#' [metro()]\tab Metropolitan areas ([sf::sf()] object of points) \cr
#' [rivers()]\tab Rivers ([sf::sf()] object of lines) \cr
#' [land()]\tab Global land cover ([`stars()`][stars::st_as_stars] object)\cr
#' --------------------------- \tab --------------------------------------------------------------------------------------------------- \cr
#' }
#'
Expand All @@ -113,6 +113,6 @@
#' @concept statistical maps
#' @concept choropleth
#' @concept bubble map
#' @seealso \href{../doc/tmap-getstarted.html}{\code{vignette("tmap-getstarted")}}
#' @seealso [`vignette("tmap-getstarted")`](../doc/tmap-getstarted.html)
#' @references Tennekes, M., 2018, {tmap}: Thematic Maps in {R}, Journal of Statistical Software, 84(6), 1-39, \doi{10.18637/jss.v084.i06}
"_PACKAGE"
2 changes: 1 addition & 1 deletion R/print.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @param x tmap object.
#' @param return.asp should the aspect ratio be returned?
#' @param show show the map
#' @param vp viewport (for \code{"plot"} mode)
#' @param vp viewport (for `"plot"` mode)
#' @param ... not used
#' @export
#' @method print tmap
Expand Down
Loading

0 comments on commit c337b02

Please sign in to comment.