Skip to content

Commit 259a180

Browse files
committed
Send to cran
1 parent e767ae4 commit 259a180

File tree

3 files changed

+34
-24
lines changed

3 files changed

+34
-24
lines changed

CITATION.cff

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ references:
7474
given-names: Gábor
7575
email: csardi.gabor@gmail.com
7676
year: '2022'
77+
url: https://CRAN.R-project.org/package=cli
7778
version: '>= 3.0.0'
7879
- type: software
7980
title: crayon
@@ -84,7 +85,7 @@ references:
8485
given-names: Gábor
8586
email: csardi.gabor@gmail.com
8687
year: '2022'
87-
url: https://github.com/r-lib/crayon#readme
88+
url: https://CRAN.R-project.org/package=crayon
8889
- type: software
8990
title: data.table
9091
abstract: 'data.table: Extension of `data.frame`'
@@ -97,6 +98,7 @@ references:
9798
given-names: Arun
9899
email: asrini@pm.me
99100
year: '2022'
101+
url: https://CRAN.R-project.org/package=data.table
100102
- type: software
101103
title: dplyr
102104
abstract: 'dplyr: A Grammar of Data Manipulation'
@@ -115,6 +117,7 @@ references:
115117
given-names: Kirill
116118
orcid: https://orcid.org/0000-0002-1416-3412
117119
year: '2022'
120+
url: https://CRAN.R-project.org/package=dplyr
118121
version: '>= 1.0.0'
119122
- type: software
120123
title: ggplot2
@@ -149,6 +152,7 @@ references:
149152
given-names: Dewey
150153
orcid: https://orcid.org/0000-0002-9415-4582
151154
year: '2022'
155+
url: https://CRAN.R-project.org/package=ggplot2
152156
version: '>= 3.1.0'
153157
- type: software
154158
title: magrittr
@@ -162,6 +166,7 @@ references:
162166
given-names: Hadley
163167
email: hadley@rstudio.com
164168
year: '2022'
169+
url: https://CRAN.R-project.org/package=magrittr
165170
- type: software
166171
title: rlang
167172
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
@@ -174,6 +179,7 @@ references:
174179
given-names: Hadley
175180
email: hadley@rstudio.com
176181
year: '2022'
182+
url: https://CRAN.R-project.org/package=rlang
177183
- type: software
178184
title: scales
179185
abstract: 'scales: Scale Functions for Visualization'
@@ -185,6 +191,7 @@ references:
185191
- family-names: Seidel
186192
given-names: Dana
187193
year: '2022'
194+
url: https://CRAN.R-project.org/package=scales
188195
- type: software
189196
title: sf
190197
abstract: 'sf: Simple Features for R'
@@ -195,6 +202,7 @@ references:
195202
email: edzer.pebesma@uni-muenster.de
196203
orcid: https://orcid.org/0000-0001-8049-7069
197204
year: '2022'
205+
url: https://CRAN.R-project.org/package=sf
198206
version: '>= 1.0.0'
199207
- type: software
200208
title: terra
@@ -206,7 +214,7 @@ references:
206214
email: r.hijmans@gmail.com
207215
orcid: https://orcid.org/0000-0001-5872-2872
208216
year: '2022'
209-
url: https://rspatial.org/terra/
217+
url: https://CRAN.R-project.org/package=terra
210218
version: '>= 1.5-12'
211219
- type: software
212220
title: tibble
@@ -220,6 +228,7 @@ references:
220228
given-names: Hadley
221229
email: hadley@rstudio.com
222230
year: '2022'
231+
url: https://CRAN.R-project.org/package=tibble
223232
version: '>= 3.0.0'
224233
- type: software
225234
title: tidyr
@@ -232,6 +241,7 @@ references:
232241
- family-names: Girlich
233242
given-names: Maximilian
234243
year: '2022'
244+
url: https://CRAN.R-project.org/package=tidyr
235245
version: '>= 1.0.0'
236246
- type: software
237247
title: isoband
@@ -248,7 +258,7 @@ references:
248258
email: thomasp85@gmail.com
249259
orcid: https://orcid.org/0000-0002-5147-4711
250260
year: '2022'
251-
url: https://wilkelab.org/isoband/
261+
url: https://CRAN.R-project.org/package=isoband
252262
- type: software
253263
title: knitr
254264
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
@@ -259,7 +269,7 @@ references:
259269
email: xie@yihui.name
260270
orcid: https://orcid.org/0000-0003-0645-5666
261271
year: '2022'
262-
url: https://yihui.org/knitr/
272+
url: https://CRAN.R-project.org/package=knitr
263273
- type: software
264274
title: lifecycle
265275
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
@@ -273,6 +283,7 @@ references:
273283
email: hadley@rstudio.com
274284
orcid: https://orcid.org/0000-0003-4757-117X
275285
year: '2022'
286+
url: https://CRAN.R-project.org/package=lifecycle
276287
- type: software
277288
title: maptiles
278289
abstract: 'maptiles: Download and Display Map Tiles'
@@ -283,7 +294,7 @@ references:
283294
email: timothee.giraud@cnrs.fr
284295
orcid: https://orcid.org/0000-0002-1932-3323
285296
year: '2022'
286-
url: https://github.com/riatelab/maptiles/
297+
url: https://CRAN.R-project.org/package=maptiles
287298
- type: software
288299
title: rmarkdown
289300
abstract: 'rmarkdown: Dynamic Documents for R'
@@ -322,6 +333,7 @@ references:
322333
email: rich@rstudio.com
323334
orcid: https://orcid.org/0000-0003-3925-190X
324335
year: '2022'
336+
url: https://CRAN.R-project.org/package=rmarkdown
325337
- type: software
326338
title: s2
327339
abstract: 's2: Spherical Geometry Operators Using the S2 Geometry Library'
@@ -339,6 +351,7 @@ references:
339351
given-names: Ege
340352
email: rubak@math.aau.dk
341353
year: '2022'
354+
url: https://CRAN.R-project.org/package=s2
342355
- type: software
343356
title: testthat
344357
abstract: 'testthat: Unit Testing for R'
@@ -348,6 +361,7 @@ references:
348361
given-names: Hadley
349362
email: hadley@rstudio.com
350363
year: '2022'
364+
url: https://CRAN.R-project.org/package=testthat
351365
version: '>= 3.0.0'
352366
- type: software
353367
title: tidyverse
@@ -358,6 +372,7 @@ references:
358372
given-names: Hadley
359373
email: hadley@rstudio.com
360374
year: '2022'
375+
url: https://CRAN.R-project.org/package=tidyverse
361376
- type: software
362377
title: vdiffr
363378
abstract: 'vdiffr: Visual Regression Testing and Graphical Diffing'
@@ -380,3 +395,4 @@ references:
380395
given-names: Vaudor
381396
email: lise.vaudor@ens-lyon.fr
382397
year: '2022'
398+
url: https://CRAN.R-project.org/package=vdiffr

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ objects with [{ggplot2}](https://ggplot2.tidyverse.org/).
3232
{tidyverse} methods implemented on {tidyterra} works differently
3333
depending on the type of Spat\* object:
3434

35-
- SpatVector: the methods are implemented taking advantage of the
36-
tidyverse implementation on {sf}. The SpatVector object is converted
37-
first to sf via `sf::st_as_sf()`, then the method (or function) is
38-
applied and finally the object is converted back to SpatVector with
39-
`terra::vect()`. Hence, rows correspond to geometries and columns
40-
correspond to attributes of the geometry.
41-
42-
- SpatRaster: The implementation on SpatRaster objects differs, since
43-
the methods could be applied to layers or to cells. {tidyterra}
44-
overall approach is to treat the layers as columns of a tibble and the
45-
cells as rows (i.e. `select(SpatRaster, 1)` would select the first
46-
layer of a SpatRaster).
35+
- SpatVector: the methods are implemented taking advantage of the
36+
tidyverse implementation on {sf}. The SpatVector object is converted
37+
first to sf via `sf::st_as_sf()`, then the method (or function) is
38+
applied and finally the object is converted back to SpatVector with
39+
`terra::vect()`. Hence, rows correspond to geometries and columns
40+
correspond to attributes of the geometry.
41+
42+
- SpatRaster: The implementation on SpatRaster objects differs, since
43+
the methods could be applied to layers or to cells. {tidyterra}
44+
overall approach is to treat the layers as columns of a tibble and
45+
the cells as rows (i.e. `select(SpatRaster, 1)` would select the
46+
first layer of a SpatRaster).
4747

4848
The methods implemented return the same type of object used as input,
4949
unless the expected behavior of the method is to return another type of
@@ -100,7 +100,6 @@ install.packages("tidyterra")
100100
You can install the development version of {tidyterra} like so:
101101

102102
``` r
103-
104103
remotes::install_github("dieghernan/tidyterra")
105104
```
106105

@@ -150,7 +149,6 @@ ggplot() +
150149

151150
``` r
152151

153-
154152
# Create maximum differences
155153

156154
variation <- rastertemp %>%
@@ -186,7 +184,6 @@ ggplot(prov) +
186184
{ggplot2}
187185

188186
``` r
189-
190187
f_tile <- system.file("extdata/cyl_tile.tif", package = "tidyterra")
191188

192189
rgb_tile <- rast(f_tile)
@@ -204,7 +201,6 @@ plot
204201
<img src="https://raw.githubusercontent.com/dieghernan/tidyterra/main/img/README-example-tile-1.png" width="100%" />
205202

206203
``` r
207-
208204
# Recognizes coord_sf()
209205
plot +
210206
# Change crs and datum (for relabeling graticules)
@@ -217,7 +213,6 @@ plot +
217213
{ggplot2}:
218214

219215
``` r
220-
221216
asia <- rast(system.file("extdata/asia.tif", package = "tidyterra"))
222217

223218
terra::plot(asia)
@@ -226,7 +221,6 @@ terra::plot(asia)
226221
<img src="https://raw.githubusercontent.com/dieghernan/tidyterra/main/img/README-hypso-1.png" width="100%" />
227222

228223
``` r
229-
230224
ggplot() +
231225
geom_spatraster(data = asia) +
232226
scale_fill_hypso_tint_c(

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
},
332332
"SystemRequirements": null
333333
},
334-
"fileSize": "2553.946KB",
334+
"fileSize": "2552.194KB",
335335
"citation": [
336336
{
337337
"@type": "SoftwareSourceCode",

0 commit comments

Comments
 (0)