From 7051ecca1eefb753396a22f0f02effc1c5ab2ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gu=C3=A9lat?= <15686289+jguelat@users.noreply.github.com> Date: Thu, 3 Jul 2025 08:50:56 +0200 Subject: [PATCH 1/2] Add more details about bbox = "FULL" --- R/tm_shape.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tm_shape.R b/R/tm_shape.R index a6a511bd..9f3e5d60 100644 --- a/R/tm_shape.R +++ b/R/tm_shape.R @@ -24,7 +24,7 @@ #' for eqdc: \url{https://proj.org/en/9.4/operations/projections/eqdc.html} #' #' @param shp Spatial object -#' @param bbox Bounding box of the map (only used if `shp` is the main shape (see `is.main`). Three options: a [sf::st_bbox()] object, an Open Street Map query (passed on to [tmaptools::geocode_OSM()]), or `"FULL"`, which means the whole earth. +#' @param bbox Bounding box of the map (only used if `shp` is the main shape (see `is.main`). Three options: a [sf::st_bbox()] object, an Open Street Map query (passed on to [tmaptools::geocode_OSM()]), or `"FULL"`, which means the whole earth (this also guarantees that transformations to another CRS keeps the whole earth, unlike [sf::st_bbox()]) #' @param crs Map projection (CRS). Can be set to an `crs` object (see [sf::st_crs()]), a proj4string, an EPSG number, the value `"auto"` (automatic crs recommendation), or one the the following generic projections: `c("laea", "aeqd", "utm", "pconic", "eqdc", "stere")`. See details. #' @param is.main Is `shp` the main shape, which determines the crs and #' bounding box of the map? By default, `TRUE` if it is the first `tm_shape` call From 9e5745f1117aeed3bb415310246598efe70be802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gu=C3=A9lat?= <15686289+jguelat@users.noreply.github.com> Date: Thu, 3 Jul 2025 08:55:40 +0200 Subject: [PATCH 2/2] Fix typo --- R/tm_shape.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tm_shape.R b/R/tm_shape.R index 9f3e5d60..8434e234 100644 --- a/R/tm_shape.R +++ b/R/tm_shape.R @@ -24,7 +24,7 @@ #' for eqdc: \url{https://proj.org/en/9.4/operations/projections/eqdc.html} #' #' @param shp Spatial object -#' @param bbox Bounding box of the map (only used if `shp` is the main shape (see `is.main`). Three options: a [sf::st_bbox()] object, an Open Street Map query (passed on to [tmaptools::geocode_OSM()]), or `"FULL"`, which means the whole earth (this also guarantees that transformations to another CRS keeps the whole earth, unlike [sf::st_bbox()]) +#' @param bbox Bounding box of the map (only used if `shp` is the main shape (see `is.main`). Three options: a [sf::st_bbox()] object, an Open Street Map query (passed on to [tmaptools::geocode_OSM()]), or `"FULL"`, which means the whole earth (this also guarantees that transformations to another CRS keep the whole earth, unlike [sf::st_bbox()]). #' @param crs Map projection (CRS). Can be set to an `crs` object (see [sf::st_crs()]), a proj4string, an EPSG number, the value `"auto"` (automatic crs recommendation), or one the the following generic projections: `c("laea", "aeqd", "utm", "pconic", "eqdc", "stere")`. See details. #' @param is.main Is `shp` the main shape, which determines the crs and #' bounding box of the map? By default, `TRUE` if it is the first `tm_shape` call