Skip to content

Commit

Permalink
Update docs with pkgdev
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Jan 23, 2023
1 parent 70860f4 commit 83dff5b
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 46 deletions.
46 changes: 23 additions & 23 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ preferred-citation:
email: diego.hernangomezherrero@gmail.com
orcid: https://orcid.org/0000-0001-8457-4658
doi: 10.5281/zenodo.6572471
year: '2022'
year: '2023'
version: 0.3.1
url: https://dieghernan.github.io/tidyterra/
abstract: Extension of the tidyverse for SpatRaster and SpatVector objects of the
Expand Down Expand Up @@ -61,7 +61,7 @@ references:
- name: R Core Team
location:
name: Vienna, Austria
year: '2022'
year: '2023'
institution:
name: R Foundation for Statistical Computing
version: '>= 3.6.0'
Expand All @@ -75,7 +75,7 @@ references:
- family-names: Csárdi
given-names: Gábor
email: csardi.gabor@gmail.com
year: '2022'
year: '2023'
version: '>= 3.0.0'
- type: software
title: crayon
Expand All @@ -87,7 +87,7 @@ references:
- family-names: Csárdi
given-names: Gábor
email: csardi.gabor@gmail.com
year: '2022'
year: '2023'
- type: software
title: data.table
abstract: 'data.table: Extension of `data.frame`'
Expand All @@ -101,7 +101,7 @@ references:
- family-names: Srinivasan
given-names: Arun
email: asrini@pm.me
year: '2022'
year: '2023'
- type: software
title: dplyr
abstract: 'dplyr: A Grammar of Data Manipulation'
Expand All @@ -121,7 +121,7 @@ references:
- family-names: Müller
given-names: Kirill
orcid: https://orcid.org/0000-0002-1416-3412
year: '2022'
year: '2023'
version: '>= 1.0.0'
- type: software
title: ggplot2
Expand Down Expand Up @@ -157,7 +157,7 @@ references:
- family-names: Dunnington
given-names: Dewey
orcid: https://orcid.org/0000-0002-9415-4582
year: '2022'
year: '2023'
version: '>= 3.1.0'
- type: software
title: magrittr
Expand All @@ -172,7 +172,7 @@ references:
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
year: '2023'
- type: software
title: rlang
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
Expand All @@ -186,7 +186,7 @@ references:
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
year: '2023'
- type: software
title: scales
abstract: 'scales: Scale Functions for Visualization'
Expand All @@ -199,7 +199,7 @@ references:
email: hadley@rstudio.com
- family-names: Seidel
given-names: Dana
year: '2022'
year: '2023'
- type: software
title: sf
abstract: 'sf: Simple Features for R'
Expand All @@ -211,7 +211,7 @@ references:
given-names: Edzer
email: edzer.pebesma@uni-muenster.de
orcid: https://orcid.org/0000-0001-8049-7069
year: '2022'
year: '2023'
version: '>= 1.0.0'
- type: software
title: terra
Expand All @@ -224,7 +224,7 @@ references:
given-names: Robert J.
email: r.hijmans@gmail.com
orcid: https://orcid.org/0000-0001-5872-2872
year: '2022'
year: '2023'
version: '>= 1.5-12'
- type: software
title: tibble
Expand All @@ -239,7 +239,7 @@ references:
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
year: '2023'
version: '>= 3.0.0'
- type: software
title: tidyr
Expand All @@ -253,7 +253,7 @@ references:
email: hadley@rstudio.com
- family-names: Girlich
given-names: Maximilian
year: '2022'
year: '2023'
version: '>= 1.0.0'
- type: software
title: isoband
Expand All @@ -275,7 +275,7 @@ references:
given-names: Thomas Lin
email: thomasp85@gmail.com
orcid: https://orcid.org/0000-0002-5147-4711
year: '2022'
year: '2023'
- type: software
title: knitr
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
Expand All @@ -287,7 +287,7 @@ references:
given-names: Yihui
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
year: '2022'
year: '2023'
- type: software
title: lifecycle
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
Expand All @@ -302,7 +302,7 @@ references:
given-names: Hadley
email: hadley@rstudio.com
orcid: https://orcid.org/0000-0003-4757-117X
year: '2022'
year: '2023'
- type: software
title: maptiles
abstract: 'maptiles: Download and Display Map Tiles'
Expand All @@ -314,7 +314,7 @@ references:
given-names: Timothée
email: timothee.giraud@cnrs.fr
orcid: https://orcid.org/0000-0002-1932-3323
year: '2022'
year: '2023'
- type: software
title: rmarkdown
abstract: 'rmarkdown: Dynamic Documents for R'
Expand Down Expand Up @@ -354,7 +354,7 @@ references:
given-names: Richard
email: rich@rstudio.com
orcid: https://orcid.org/0000-0003-3925-190X
year: '2022'
year: '2023'
- type: software
title: s2
abstract: 's2: Spherical Geometry Operators Using the S2 Geometry Library'
Expand All @@ -373,7 +373,7 @@ references:
- family-names: Rubak
given-names: Ege
email: rubak@math.aau.dk
year: '2022'
year: '2023'
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
Expand All @@ -384,7 +384,7 @@ references:
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
year: '2023'
version: '>= 3.0.0'
- type: software
title: tidyverse
Expand All @@ -396,7 +396,7 @@ references:
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2022'
year: '2023'
- type: software
title: vdiffr
abstract: 'vdiffr: Visual Regression Testing and Graphical Diffing'
Expand All @@ -420,4 +420,4 @@ references:
- family-names: Lise
given-names: Vaudor
email: lise.vaudor@ens-lyon.fr
year: '2022'
year: '2023'
3 changes: 0 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ install.packages("tidyterra")
You can install the development version of {tidyterra} like so:

```{r, eval=FALSE }
remotes::install_github("dieghernan/tidyterra")
```

Expand Down Expand Up @@ -195,7 +194,6 @@ ggplot(prov) +
{tidyterra} also provide a geom for plotting RGB SpatRaster tiles with {ggplot2}

```{r example-tile}
f_tile <- system.file("extdata/cyl_tile.tif", package = "tidyterra")
rgb_tile <- rast(f_tile)
Expand All @@ -219,7 +217,6 @@ plot +
{ggplot2}:

```{r hypso}
asia <- rast(system.file("extdata/asia.tif", package = "tidyterra"))
terra::plot(asia)
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ install.packages("tidyterra")
You can install the development version of {tidyterra} like so:

``` r

remotes::install_github("dieghernan/tidyterra")
```

Expand Down Expand Up @@ -186,7 +185,6 @@ ggplot(prov) +
{ggplot2}

``` r

f_tile <- system.file("extdata/cyl_tile.tif", package = "tidyterra")

rgb_tile <- rast(f_tile)
Expand Down Expand Up @@ -217,7 +215,6 @@ plot +
{ggplot2}:

``` r

asia <- rast(system.file("extdata/asia.tif", package = "tidyterra"))

terra::plot(asia)
Expand Down Expand Up @@ -264,7 +261,7 @@ open a new [issue](https://github.com/dieghernan/tidyterra/issues)!

To cite ‘tidyterra’ in publications use:

Hernangomez D (2022). tidyterra: tidyverse Methods and ggplot2 Helpers
Hernangomez D (2023). tidyterra: tidyverse Methods and ggplot2 Helpers
for terra Objects. <https://doi.org/10.5281/zenodo.6572471>,
<https://dieghernan.github.io/tidyterra/>

Expand All @@ -274,7 +271,7 @@ A BibTeX entry for LaTeX users is
title = {{tidyterra}: tidyverse Methods and ggplot2 Helpers for terra Objects},
doi = {10.5281/zenodo.6572471},
author = {Diego Hernangómez},
year = {2022},
year = {2023},
version = {0.3.1},
url = {https://dieghernan.github.io/tidyterra/},
abstract = {Extension of the tidyverse for SpatRaster and SpatVector objects of the terra package. It includes also new geom_ functions that provide a convenient way of visualizing terra objects with ggplot2.},
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@
},
"SystemRequirements": null
},
"fileSize": "2901.504KB",
"fileSize": "2901.498KB",
"citation": [
{
"@type": "SoftwareSourceCode",
"datePublished": "2022",
"datePublished": "2023",
"author": [
{
"@type": "Person",
Expand Down
5 changes: 0 additions & 5 deletions vignettes/articles/faqs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ and the potential solutions to it (mostly related with the use of **terra** and
the following links.

```{r issues, echo=FALSE, results='asis'}
link <- unlist(packageDescription("tidyterra")["BugReports"])
cat("\n- Issues: ", link)
dis <- gsub("issues$", "discussions", link)
Expand All @@ -40,7 +39,6 @@ color scales (i.e., `scale_fill_whitebox_c()`, etc.), has by default the
parameter `na.value` set to `NA`, that prevents NA values to be plotted.

```{r remove-nas}
library(terra)
library(tidyterra)
library(ggplot2)
Expand Down Expand Up @@ -194,7 +192,6 @@ resampling and force the **ggplot2** map to be on **EPSG:3857** with
`ggplot2::coord_sf(crs = 3857)`:

```{r blurry-tile}
library(terra)
library(tidyterra)
library(ggplot2)
Expand Down Expand Up @@ -246,7 +243,6 @@ Again, this is the **ggplot2** default, but can be modified with
`ggplot2::coord_sf(datum)` argument:

```{r modify-datum}
library(terra)
library(tidyterra)
library(ggplot2)
Expand Down Expand Up @@ -283,7 +279,6 @@ The best option is to pass your custom breaks to `ggplot2::scale_x_continous()`
or `ggplot2::scale_y_continous()`:

```{r breaks}
library(terra)
library(tidyterra)
library(ggplot2)
Expand Down
5 changes: 0 additions & 5 deletions vignettes/articles/palettes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ This page shows a gallery of maps that can be displayed with the gradient fill
scales included with **tidyterra**. A basic code to generate this map is:

```{r, eval=FALSE}
library(tidyterra)
library(terra)
library(ggplot2)
Expand All @@ -47,7 +46,6 @@ ggplot() +
Check `scale_fill_terrain_c()` and `scale_fill_wiki_c()` for more info.

```{r terr_wiki, echo=FALSE}
r <- terra::rast(system.file("extdata/volcano2.tif",
package = "tidyterra"
))
Expand Down Expand Up @@ -78,7 +76,6 @@ print(ss)
Check `scale_fill_whitebox_c()` for more info.

```{r whitebox, echo=FALSE}
allpals <- sort(c(
"atlas", "high_relief", "arid", "soft", "muted", "purple",
"viridi", "gn_yl", "pi_y_g", "bl_yl_rd", "deep"
Expand All @@ -100,7 +97,6 @@ for (i in allpals) {
Check `scale_fill_hypso_c()` for more info.

```{r hypso, echo=FALSE}
allpals <- sort(unique(hypsometric_tints_db$pal))
for (i in allpals) {
Expand All @@ -118,7 +114,6 @@ for (i in allpals) {
Check `scale_fill_cross_blended_c()` for more info.

```{r cross, echo=FALSE}
allpals <- sort(unique(cross_blended_hypsometric_tints_db$pal))
for (i in allpals) {
Expand Down
3 changes: 0 additions & 3 deletions vignettes/tidyterra.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ to other spatial layers:


```r

library(ggplot2)

# A faceted SpatRaster
Expand Down Expand Up @@ -198,7 +197,6 @@ With {tidyterra} you can also plot RGB SpatRasters to add imagery to your plots:


```r

# Read a vector

f_v <- system.file("extdata/cyl.gpkg", package = "tidyterra")
Expand Down Expand Up @@ -232,7 +230,6 @@ and bathymetric maps:


```r

asia <- rast(system.file("extdata/asia.tif", package = "tidyterra"))

asia
Expand Down

0 comments on commit 83dff5b

Please # to comment.