diff --git a/CITATION.cff b/CITATION.cff
index b2b8fc2c..fede9e6e 100644
--- a/CITATION.cff
+++ b/CITATION.cff
@@ -74,6 +74,7 @@ references:
given-names: Gábor
email: csardi.gabor@gmail.com
year: '2022'
+ url: https://CRAN.R-project.org/package=cli
version: '>= 3.0.0'
- type: software
title: crayon
@@ -84,7 +85,7 @@ references:
given-names: Gábor
email: csardi.gabor@gmail.com
year: '2022'
- url: https://github.com/r-lib/crayon#readme
+ url: https://CRAN.R-project.org/package=crayon
- type: software
title: data.table
abstract: 'data.table: Extension of `data.frame`'
@@ -97,6 +98,7 @@ references:
given-names: Arun
email: asrini@pm.me
year: '2022'
+ url: https://CRAN.R-project.org/package=data.table
- type: software
title: dplyr
abstract: 'dplyr: A Grammar of Data Manipulation'
@@ -115,6 +117,7 @@ references:
given-names: Kirill
orcid: https://orcid.org/0000-0002-1416-3412
year: '2022'
+ url: https://CRAN.R-project.org/package=dplyr
version: '>= 1.0.0'
- type: software
title: ggplot2
@@ -149,6 +152,7 @@ references:
given-names: Dewey
orcid: https://orcid.org/0000-0002-9415-4582
year: '2022'
+ url: https://CRAN.R-project.org/package=ggplot2
version: '>= 3.1.0'
- type: software
title: magrittr
@@ -162,6 +166,7 @@ references:
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
+ url: https://CRAN.R-project.org/package=magrittr
- type: software
title: rlang
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
@@ -174,6 +179,7 @@ references:
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
+ url: https://CRAN.R-project.org/package=rlang
- type: software
title: scales
abstract: 'scales: Scale Functions for Visualization'
@@ -185,6 +191,7 @@ references:
- family-names: Seidel
given-names: Dana
year: '2022'
+ url: https://CRAN.R-project.org/package=scales
- type: software
title: sf
abstract: 'sf: Simple Features for R'
@@ -195,6 +202,7 @@ references:
email: edzer.pebesma@uni-muenster.de
orcid: https://orcid.org/0000-0001-8049-7069
year: '2022'
+ url: https://CRAN.R-project.org/package=sf
version: '>= 1.0.0'
- type: software
title: terra
@@ -206,7 +214,7 @@ references:
email: r.hijmans@gmail.com
orcid: https://orcid.org/0000-0001-5872-2872
year: '2022'
- url: https://rspatial.org/terra/
+ url: https://CRAN.R-project.org/package=terra
version: '>= 1.5-12'
- type: software
title: tibble
@@ -220,6 +228,7 @@ references:
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
+ url: https://CRAN.R-project.org/package=tibble
version: '>= 3.0.0'
- type: software
title: tidyr
@@ -232,6 +241,7 @@ references:
- family-names: Girlich
given-names: Maximilian
year: '2022'
+ url: https://CRAN.R-project.org/package=tidyr
version: '>= 1.0.0'
- type: software
title: isoband
@@ -248,7 +258,7 @@ references:
email: thomasp85@gmail.com
orcid: https://orcid.org/0000-0002-5147-4711
year: '2022'
- url: https://wilkelab.org/isoband/
+ url: https://CRAN.R-project.org/package=isoband
- type: software
title: knitr
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
@@ -259,7 +269,7 @@ references:
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
year: '2022'
- url: https://yihui.org/knitr/
+ url: https://CRAN.R-project.org/package=knitr
- type: software
title: lifecycle
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
@@ -273,6 +283,7 @@ references:
email: hadley@rstudio.com
orcid: https://orcid.org/0000-0003-4757-117X
year: '2022'
+ url: https://CRAN.R-project.org/package=lifecycle
- type: software
title: maptiles
abstract: 'maptiles: Download and Display Map Tiles'
@@ -283,7 +294,7 @@ references:
email: timothee.giraud@cnrs.fr
orcid: https://orcid.org/0000-0002-1932-3323
year: '2022'
- url: https://github.com/riatelab/maptiles/
+ url: https://CRAN.R-project.org/package=maptiles
- type: software
title: rmarkdown
abstract: 'rmarkdown: Dynamic Documents for R'
@@ -322,6 +333,7 @@ references:
email: rich@rstudio.com
orcid: https://orcid.org/0000-0003-3925-190X
year: '2022'
+ url: https://CRAN.R-project.org/package=rmarkdown
- type: software
title: s2
abstract: 's2: Spherical Geometry Operators Using the S2 Geometry Library'
@@ -339,6 +351,7 @@ references:
given-names: Ege
email: rubak@math.aau.dk
year: '2022'
+ url: https://CRAN.R-project.org/package=s2
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
@@ -348,6 +361,7 @@ references:
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
+ url: https://CRAN.R-project.org/package=testthat
version: '>= 3.0.0'
- type: software
title: tidyverse
@@ -358,6 +372,7 @@ references:
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
+ url: https://CRAN.R-project.org/package=tidyverse
- type: software
title: vdiffr
abstract: 'vdiffr: Visual Regression Testing and Graphical Diffing'
@@ -380,3 +395,4 @@ references:
given-names: Vaudor
email: lise.vaudor@ens-lyon.fr
year: '2022'
+ url: https://CRAN.R-project.org/package=vdiffr
diff --git a/README.md b/README.md
index 8eccf213..a1a9149b 100644
--- a/README.md
+++ b/README.md
@@ -32,18 +32,18 @@ objects with [{ggplot2}](https://ggplot2.tidyverse.org/).
{tidyverse} methods implemented on {tidyterra} works differently
depending on the type of Spat\* object:
-- SpatVector: the methods are implemented taking advantage of the
- tidyverse implementation on {sf}. The SpatVector object is converted
- first to sf via `sf::st_as_sf()`, then the method (or function) is
- applied and finally the object is converted back to SpatVector with
- `terra::vect()`. Hence, rows correspond to geometries and columns
- correspond to attributes of the geometry.
-
-- SpatRaster: The implementation on SpatRaster objects differs, since
- the methods could be applied to layers or to cells. {tidyterra}
- overall approach is to treat the layers as columns of a tibble and the
- cells as rows (i.e. `select(SpatRaster, 1)` would select the first
- layer of a SpatRaster).
+- SpatVector: the methods are implemented taking advantage of the
+ tidyverse implementation on {sf}. The SpatVector object is converted
+ first to sf via `sf::st_as_sf()`, then the method (or function) is
+ applied and finally the object is converted back to SpatVector with
+ `terra::vect()`. Hence, rows correspond to geometries and columns
+ correspond to attributes of the geometry.
+
+- SpatRaster: The implementation on SpatRaster objects differs, since
+ the methods could be applied to layers or to cells. {tidyterra}
+ overall approach is to treat the layers as columns of a tibble and
+ the cells as rows (i.e. `select(SpatRaster, 1)` would select the
+ first layer of a SpatRaster).
The methods implemented return the same type of object used as input,
unless the expected behavior of the method is to return another type of
@@ -100,7 +100,6 @@ install.packages("tidyterra")
You can install the development version of {tidyterra} like so:
``` r
-
remotes::install_github("dieghernan/tidyterra")
```
@@ -150,7 +149,6 @@ ggplot() +
``` r
-
# Create maximum differences
variation <- rastertemp %>%
@@ -186,7 +184,6 @@ ggplot(prov) +
{ggplot2}
``` r
-
f_tile <- system.file("extdata/cyl_tile.tif", package = "tidyterra")
rgb_tile <- rast(f_tile)
@@ -204,7 +201,6 @@ plot
``` r
-
# Recognizes coord_sf()
plot +
# Change crs and datum (for relabeling graticules)
@@ -217,7 +213,6 @@ plot +
{ggplot2}:
``` r
-
asia <- rast(system.file("extdata/asia.tif", package = "tidyterra"))
terra::plot(asia)
@@ -226,7 +221,6 @@ terra::plot(asia)
``` r
-
ggplot() +
geom_spatraster(data = asia) +
scale_fill_hypso_tint_c(
diff --git a/codemeta.json b/codemeta.json
index c9100b7e..6c472826 100644
--- a/codemeta.json
+++ b/codemeta.json
@@ -331,7 +331,7 @@
},
"SystemRequirements": null
},
- "fileSize": "2553.946KB",
+ "fileSize": "2552.194KB",
"citation": [
{
"@type": "SoftwareSourceCode",