Skip to content

Commit b6f7ac5

Browse files
committed
Review README
1 parent 0775149 commit b6f7ac5

11 files changed

+43
-43
lines changed

README.Rmd

+7-7
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ ggplot(prov) +
236236
theme_minimal() +
237237
coord_sf(crs = 25830) +
238238
labs(
239-
fill = "variation",
240-
title = "Variation of temperature in Castille and Leon (Spain)",
241-
subtitle = "Average temperatures in June vs. May"
239+
fill = "Variation",
240+
title = "Variation of Temperature in Castile and León (Spain)",
241+
subtitle = "Average Temperatures: June vs. May"
242242
)
243243
```
244244

245-
**tidyterra** also provide a geom for plotting RGB `SpatRaster` tiles with
246-
**ggplot2**
245+
**tidyterra** also provides a geom for plotting RGB `SpatRaster` tiles with
246+
**ggplot2**:
247247

248248
```{r example-tile}
249249
rgb_tile <- rast(system.file("extdata/cyl_tile.tif", package = "tidyterra"))
@@ -255,9 +255,9 @@ plot <- ggplot(prov) +
255255
256256
plot
257257
258-
# Recognizes coord_sf()
258+
# Automatically recognizes and applies coord_sf() for spatial data.
259259
plot +
260-
# Change crs and datum (for relabeling graticules)
260+
# Change the CRS and datum (useful for relabeling graticules).
261261
coord_sf(crs = 3857, datum = 3857)
262262
```
263263

README.md

+35-35
Original file line numberDiff line numberDiff line change
@@ -86,34 +86,34 @@ object, (for example, `as_tibble()` would return a `tibble`).
8686

8787
Current methods and functions provided by **tidyterra** are:
8888

89-
| tidyverse method | `SpatVector` | `SpatRaster` |
90-
|---------------------------------------------|-----------------------------------------------|------------------------------------------------------------------------------------------------|
91-
| `tibble::as_tibble()` | ✔️ | ✔️ |
92-
| `dplyr::select()` | ✔️ | ✔️ Select layers |
93-
| `dplyr::mutate()` | ✔️ | ✔️ Create /modify layers |
94-
| `dplyr::transmute()` | ✔️ | ✔️ |
95-
| `dplyr::filter()` | ✔️ | ✔️ Modify cells values and (additionally) remove outer cells. |
96-
| `dplyr::slice()` | ✔️ | ✔️ Additional methods for slicing by row and column. |
97-
| `dplyr::pull()` | ✔️ | ✔️ |
98-
| `dplyr::rename()` | ✔️ | ✔️ |
99-
| `dplyr::relocate()` | ✔️ | ✔️ |
100-
| `dplyr::distinct()` | ✔️ | |
101-
| `dplyr::arrange()` | ✔️ | |
102-
| `dplyr::glimpse()` | ✔️ | ✔️ |
103-
| `dplyr::inner_join()` family | ✔️ | |
104-
| `dplyr::summarise()` | ✔️ | |
105-
| `dplyr::group_by()` family | ✔️ | |
106-
| `dplyr::rowwise()` | ✔️ | |
107-
| `dplyr::count()`, `tally()` | ✔️ | |
108-
| `dplyr::bind_cols()` / `dplyr::bind_rows()` | ✔️ as `bind_spat_cols()` / `bind_spat_rows()` | |
109-
| `tidyr::drop_na()` | ✔️ | ✔️ Remove cell values with `NA` on any layer. Additionally, outer cells with `NA` are removed. |
110-
| `tidyr::replace_na()` | ✔️ | ✔️ |
111-
| `tidyr::fill()` | ✔️ | |
112-
| `tidyr::pivot_longer()` | ✔️ | |
113-
| `tidyr::pivot_wider()` | ✔️ | |
114-
| `ggplot2::autoplot()` | ✔️ | ✔️ |
115-
| `ggplot2::fortify()` | ✔️ to **sf** via `sf::st_as_sf()` | To a **tibble** with coordinates. |
116-
| `ggplot2::geom_*()` | ✔️ `geom_spatvector()` | ✔️ `geom_spatraster()` and `geom_spatraster_rgb()`. |
89+
| tidyverse method | `SpatVector` | `SpatRaster` |
90+
|----|----|----|
91+
| `tibble::as_tibble()` | ✔️ | ✔️ |
92+
| `dplyr::select()` | ✔️ | ✔️ Select layers |
93+
| `dplyr::mutate()` | ✔️ | ✔️ Create /modify layers |
94+
| `dplyr::transmute()` | ✔️ | ✔️ |
95+
| `dplyr::filter()` | ✔️ | ✔️ Modify cells values and (additionally) remove outer cells. |
96+
| `dplyr::slice()` | ✔️ | ✔️ Additional methods for slicing by row and column. |
97+
| `dplyr::pull()` | ✔️ | ✔️ |
98+
| `dplyr::rename()` | ✔️ | ✔️ |
99+
| `dplyr::relocate()` | ✔️ | ✔️ |
100+
| `dplyr::distinct()` | ✔️ | |
101+
| `dplyr::arrange()` | ✔️ | |
102+
| `dplyr::glimpse()` | ✔️ | ✔️ |
103+
| `dplyr::inner_join()` family | ✔️ | |
104+
| `dplyr::summarise()` | ✔️ | |
105+
| `dplyr::group_by()` family | ✔️ | |
106+
| `dplyr::rowwise()` | ✔️ | |
107+
| `dplyr::count()`, `tally()` | ✔️ | |
108+
| `dplyr::bind_cols()` / `dplyr::bind_rows()` | ✔️ as `bind_spat_cols()` / `bind_spat_rows()` | |
109+
| `tidyr::drop_na()` | ✔️ | ✔️ Remove cell values with `NA` on any layer. Additionally, outer cells with `NA` are removed. |
110+
| `tidyr::replace_na()` | ✔️ | ✔️ |
111+
| `tidyr::fill()` | ✔️ | |
112+
| `tidyr::pivot_longer()` | ✔️ | |
113+
| `tidyr::pivot_wider()` | ✔️ | |
114+
| `ggplot2::autoplot()` | ✔️ | ✔️ |
115+
| `ggplot2::fortify()` | ✔️ to **sf** via `sf::st_as_sf()` | To a **tibble** with coordinates. |
116+
| `ggplot2::geom_*()` | ✔️ `geom_spatvector()` | ✔️ `geom_spatraster()` and `geom_spatraster_rgb()`. |
117117

118118
## :exclamation: A note on performance
119119

@@ -233,16 +233,16 @@ ggplot(prov) +
233233
theme_minimal() +
234234
coord_sf(crs = 25830) +
235235
labs(
236-
fill = "variation",
237-
title = "Variation of temperature in Castille and Leon (Spain)",
238-
subtitle = "Average temperatures in June vs. May"
236+
fill = "Variation",
237+
title = "Variation of Temperature in Castile and León (Spain)",
238+
subtitle = "Average Temperatures: June vs. May"
239239
)
240240
```
241241

242242
<img src="https://raw.githubusercontent.com/dieghernan/tidyterra/main/img/README-example-temp-2.png" width="100%" />
243243

244-
**tidyterra** also provide a geom for plotting RGB `SpatRaster` tiles
245-
with **ggplot2**
244+
**tidyterra** also provides a geom for plotting RGB `SpatRaster` tiles
245+
with **ggplot2**:
246246

247247
``` r
248248
rgb_tile <- rast(system.file("extdata/cyl_tile.tif", package = "tidyterra"))
@@ -259,9 +259,9 @@ plot
259259

260260
``` r
261261

262-
# Recognizes coord_sf()
262+
# Automatically recognizes and applies coord_sf() for spatial data.
263263
plot +
264-
# Change crs and datum (for relabeling graticules)
264+
# Change the CRS and datum (useful for relabeling graticules).
265265
coord_sf(crs = 3857, datum = 3857)
266266
```
267267

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
"SystemRequirements": null
338338
},
339339
"keywords": ["r", "terra", "ggplot-extension", "r-spatial", "rspatial", "cran", "cran-r", "r-package", "rstats", "rstats-package"],
340-
"fileSize": "2434.452KB",
340+
"fileSize": "2429.165KB",
341341
"citation": [
342342
{
343343
"@type": "ScholarlyArticle",

img/README-example-temp-2.png

338 Bytes
Loading

vignettes/aggregate-1.png

-11 Bytes
Loading

vignettes/contourlines-1.png

-23 Bytes
Loading

vignettes/faceted-1.png

-2 Bytes
Loading

vignettes/hypso-1.png

-161 Bytes
Loading

vignettes/lux_ggplot-1.png

-22 Bytes
Loading

vignettes/rgb-1.png

-13 Bytes
Loading

vignettes/spatraster-example1-1.png

-6 Bytes
Loading

0 commit comments

Comments
 (0)