diff --git a/examples/tm_crs.R b/examples/tm_crs.R index 7933c0cb..3a786431 100644 --- a/examples/tm_crs.R +++ b/examples/tm_crs.R @@ -1,4 +1,3 @@ - SA = World[World$continent == "South America", ] # latlon coordinates (WGS84) diff --git a/examples/tm_shape.R b/examples/tm_shape.R index c97829cd..11e5b04f 100644 --- a/examples/tm_shape.R +++ b/examples/tm_shape.R @@ -1,4 +1,7 @@ -tm_shape(World, crs = "+proj=ortho +lat_0=-10 +lon_0=-30") + +tm_shape(World, crs = "auto") + + tm_polygons() + +tm_shape(World, crs = 3035, bb = "Europe") + tm_polygons() tm_shape(World, crs = "+proj=robin", filter = World$continent=="Africa") + diff --git a/man/tm_crs.Rd b/man/tm_crs.Rd index 6e27c14e..b1bec672 100644 --- a/man/tm_crs.Rd +++ b/man/tm_crs.Rd @@ -39,7 +39,6 @@ for eqdc: \url{https://proj.org/en/9.4/operations/projections/eqdc.html} Plans are to migrate the functionality regarding generic crs and automatic crs recommendation to a separate package. } \examples{ - SA = World[World$continent == "South America", ] # latlon coordinates (WGS84) diff --git a/man/tm_shape.Rd b/man/tm_shape.Rd index 66ec7d68..ec1bcbda 100644 --- a/man/tm_shape.Rd +++ b/man/tm_shape.Rd @@ -62,7 +62,10 @@ for eqdc: \url{https://proj.org/en/9.4/operations/projections/eqdc.html} as of tmap 4.0, simplify has been removed. Please use \code{\link[tmaptools:simplify_shape]{tmaptools::simplify_shape()}} instead } \examples{ -tm_shape(World, crs = "+proj=ortho +lat_0=-10 +lon_0=-30") + +tm_shape(World, crs = "auto") + + tm_polygons() + +tm_shape(World, crs = 3035, bb = "Europe") + tm_polygons() tm_shape(World, crs = "+proj=robin", filter = World$continent=="Africa") +