Skip to content

Commit d17b948

Browse files
authored
Update NEWS.md (v1.1.0)
1 parent b956119 commit d17b948

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

NEWS.md

+30
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
2+
# DGVMTools v1.1.0 release (2023-12-15)
3+
4+
The primary purpose of this release is to ditch the dependencies on removed or deprecated functionality from other packages. In particular dropping `maps`, `maptools` and `mapdata` packages and replacing them with `rnaturalearth` and `rnaturalearthdata`. There are other bugfixes and changes, see below.
5+
6+
## Modernization
7+
* The `maps`, `maptools` and `mapdata` packages have been replaced with `rnaturalearth` and `rnaturalearthdata` (also removing the dependency on `rgeos`) for building country and continental outlines. The options available for the `map.overlay` argument are now "world", "countries" or "ne_countries" for full country outlines (all equivalent) or "coastlines" or "ne_coastlines" for coastlines only (both equivalent). Note these packages also have lots of other nice things what you can you on your plots (using `sf` and `ggplot2`)
8+
* In a similar vein, `selectGridcells()` (and therefore `getField()`) can now read take `sf` objects (but no longer `maps`) objects.
9+
* `SpatRast` objects from `terra` are now handled without conversion to `raster`.
10+
* `raster` and `sp` are still used in the package but only for exporting objects of those packages. Overall, the functionality of `DGVMTools` doesn't depend on `sp` or `raster` so they can be easily deprecated and removed in future releases.
11+
* Plotting arguments are more consistent with `ggplot2`, with `linewidth` replacing `size` for `geom_line`
12+
* The deprecated `aes_string()` function has been removed (behind the scenes only)
13+
14+
## Breaking changes
15+
* The `map.overlay` argument now takes strings based on `rnaturalearth` rather than `maps` (see above).
16+
* `selectGridcels()` now takes `sf` objects instead of `maps` objects. The `rnaturalearth` package is a good place to get country outlines to use here, it is a great replacement for `maps`.
17+
* The `plotSubannual()` function now has arguments `size` and `linewidth` instead of `point.size` and `line.width` respectively.
18+
19+
## Other improvements
20+
* Can now specify lons and lats to function addArea() which is useful for area calculations in sparse grids.
21+
22+
## Bugfixes
23+
* Argument `text.multiplier` now handled properly in `plotSubannual()`. Thanks Drew!
24+
* Bugfix when first.year/last.year is NULL
25+
* Bugfix in `plotSubannual()` to use the specified summary function and not always the mean.
26+
27+
28+
29+
30+
131
# DGVMTools v1.0.0 release (2022-02-25)
232

333
"Version 1.0 release" - no major features, but many refinements and improvements. Some potentially breaking changes, see below.

0 commit comments

Comments
 (0)