Skip to content

Commit af688d4

Browse files
Release v0.1.0
Remove Trees vs Rangeland section from vignette, add NEWS.md, bump version to 0.1.0 for initial public release. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b04d9e commit af688d4

3 files changed

Lines changed: 13 additions & 27 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: drift
22
Title: Detecting Riparian and Inland Floodplain Transitions
3-
Version: 0.0.0.9000
3+
Version: 0.1.0
44
Authors@R: c(
55
person("Allan", "Irvine", , "al@newgraphenvironment.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-3495-2128")),

NEWS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# drift 0.1.0
2+
3+
Initial public release.
4+
5+
- `dft_stac_fetch()` — fetch classified rasters from STAC catalogs via gdalcubes
6+
- `dft_rast_classify()` — apply class labels, colors, and optional remap to SpatRasters
7+
- `dft_rast_summarize()` — compute area by class and year with unit conversion
8+
- `dft_map_interactive()` — interactive leaflet map with layer toggle, legend, fullscreen, and titiler COG support
9+
- `dft_class_table()` — shipped class tables for IO LULC and ESA WorldCover
10+
- `dft_stac_config()` — STAC endpoint registry
11+
- Cache management: `dft_cache_path()`, `dft_cache_info()`, `dft_cache_clear()`
12+
- Vignette: Neexdzii Kwa floodplain land cover change 2017-2023

vignettes/neexdzii-kwa.Rmd

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -93,32 +93,6 @@ change <- summary_tbl |>
9393
knitr::kable(change, digits = 2, caption = "Land cover change 2017–2023 (ha)")
9494
```
9595

96-
## Trees vs Rangeland
97-
98-
The key signal in this floodplain is the shift from Trees to Rangeland over time.
99-
100-
```{r trees-rangeland}
101-
trees_range <- summary_tbl |>
102-
dplyr::filter(class_name %in% c("Trees", "Rangeland")) |>
103-
dplyr::select(year, class_name, area, pct)
104-
105-
knitr::kable(trees_range, digits = 2,
106-
caption = "Trees and Rangeland area by year (ha)")
107-
```
108-
109-
```{r plot-trees-rangeland, fig.height = 4, fig.width = 8}
110-
library(ggplot2)
111-
112-
trees_range |>
113-
ggplot(aes(x = year, y = area, fill = year)) +
114-
geom_col() +
115-
facet_wrap(~class_name, scales = "free_y") +
116-
scale_fill_brewer(palette = "YlGnBu") +
117-
labs(y = "Area (ha)", x = NULL, fill = "Year",
118-
title = "Tree cover loss in Neexdzii Kwa floodplain") +
119-
theme_minimal()
120-
```
121-
12296
## Interactive Map
12397

12498
Toggle between time periods to see how land cover changed across the floodplain.

0 commit comments

Comments
 (0)