Releases: dieghernan/tidyterra
Releases · dieghernan/tidyterra
tidyterra 1.1.0
- New dplyr minimum version: 1.2.0.
New Methods
Changes in arguments
- In dplyr 1.2.0
.byhas moved from experimental to stable. Insummarise.SpatVector()this was implemented in version 1.0.0. Now it has been extended to the following tidyterra methods as new arguments
(#193):mutate.SpatVector().filter.SpatVector().?slice.Spatmethods forSpatVector.fill.SpatVector().
- Other arguments added to methods:
?mutate.Spat: New arguments.keep, .before, .after(see
dplyr::mutate()).arrange.SpatVector():.localeadded (seedplyr::arrange()).filter.SpatVector():.preserveargument support added (previously it was ignored).- In
count.SpatVector():wtargument for performing weighted counts supported..dropargument deprecated, (it never really worked).
- In
Deprecations
?transmute.Spatis marked as superseded, as indplyr::transmute()
dplyr 1.1.0 (January 2023). Usemutate(.keep = "none").
Other changes
- Migrate vignettes and articles to Quarto.
What's Changed
- Add support for upcoming
byargument (stable) in dplyr by @dieghernan in #193 - Review count and tally methods by @dieghernan in #195
- Add
filter_outmethod by @dieghernan in #196 - Migrate to Quarto by @dieghernan in #198
Full Changelog: v1.0.0...v1.1.0
tidyterra 1.0.0
- Minimal R version required updated to >= 4.1.0.
- Minimal ggplot2 version required >= 4.0.0.
- Adapt deprecation of ggplot2 (4.0.0):
geom_spatvector_label()/geom_spatvector_text():label.size
aesthetic replaced bylinewidth. Alsonudge_xandnudge_yare not
explicitly documented and are passed toggplot2::geom_sf_label()/
_text()via dots (...).
get_coltab_pal()can extract colors with alpha values (#180).- New dependency generics added to Imports. New methods (
SpatRaster,
SpatVector,SpatGraticule,SpatExtent) included:tidy.SpatRaster(), etc.glance.SpatRaster(), etc.required_pkgs.SpatRaster(), etc.
fortify.Spatmethods now usestidy.Spatmethods under the hood:- New
fortify.SpatExtent()method.
- New
- New
autoplot.SpatExtent()andautoplot.SpatGraticule()methods. summarise.SpatVector()supports now the.byargument.geom_spatraster_contour_text()is now a stable function.- testthat: Internal changes in tests:
- Move snapshot testing to its own directory, that is included in
.Rbuildignore: ./tests/testthat/test_ci.
- Move snapshot testing to its own directory, that is included in
What's Changed
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #182
- Extract coltabs with alpha by @dieghernan in #183
- Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #184
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #185
- Add new generics methods by @dieghernan in #186
- Improve lintr by @dieghernan in #187
- Adapt test suite to testthat 3.3.0 by @dieghernan in #189
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #190
Full Changelog: v0.7.2...v1.0.0
tidyterra 0.7.2
- Hotfix: Correct error on tests for CRAN.
What's Changed
- Fix CRAN tests by @dieghernan in #174
Full Changelog: v0.7.1...v0.7.2
tidyterra 0.7.1
- New parameters in
geom_spatraster_*:mask_projection. When set toTRUE
avoidSpatRasterto wrapping around on some projections (see #115 and
#169, by @dramanica). - Fix an old bug exposed after terra 1.8-42: Plots crash when using
ggplot2::facet_wrap()in combination withcoord_sf()(or with implicit
change of CRS due to othersf/Spat*objects).
What's Changed
- add mask for projection to avoid wrap around (fix #115) by @dramanica in #169
- [ImgBot] Optimize images by @imgbot in #172
New Contributors
- @dramanica made their first contribution in #169
Full Changelog: v0.7.0...v0.7.1
tidyterra 0.7.0
- Minimal version of terra required is
1.8-10. - Remove metR from Suggests.
- Improve handling of factors when several layers have different levels. This
is done usingterra::combineLevels()(terra >=1.8-10). See
https://stackoverflow.com/questions/79340152. - Now
scalesthat uses limits truncate the legend whenlimitsparameter is
provided (#165 @Fan-iX). Scales impacted:scale_*_cross_blended_tint_candscale_*_cross_blended_tint_b.scale_*_hypso_tint_candscale_*_hypso_tint_b.scale_*_grass_candscale_*_grass_b.
- Now
geom_spatraster()(and overall pivoting ofSpatRasteris less strict
with different layer classes: if several layers can be defined as numeric
(i.e.double,integerandnumeric) the pivoting (and therefore the
plot) can be performed. This is consistent withtidyr::pivot_longer()
behavior (https://stackoverflow.com/questions/79292989).
What's Changed
- Bump dieghernan/cran-status-check from 1 to 2 by @dependabot in #163
- Handling different levels on factor layers by @dieghernan in #164
- Avoid tint color shift caused by the
limitsparameter inscale_*_hypso_tint_bandscale_*_hypso_tint_cby @Fan-iX in #165 - Expand PR #165 to other scales, tests and document by @dieghernan in #166
- Soften checks on mixed types by @dieghernan in #167
New Contributors
Full Changelog: v0.6.2...v0.7.0
tidyterra 0.6.2
- Add (limited) support for
SpatGraticule(seeterra::graticule()) #155. - New arguments in
geom_spatraster_rgb():stretchandzlim. See
terra::plotRGB()for clarification. geom_spatraster()suggestsgeom_spatraster_rgb()when aSpatRaster
with RGB specification is detected (terra::has.RGB()isTRUE)
What's Changed
- Add support for SpatGraticule by @dieghernan in #158
- Add stretch and zlim to geom_spatraster_rgb by @dieghernan in #160
Full Changelog: v0.6.1...v0.6.2
tidyterra 0.6.1
- Add new scales:
grass_dbandscale_fill_grass_c()family. This is an implementation
ofterra::map.pal(), that is the default palette forterra::plot()
(> 1.7.78).autoplot.SpatRaster()now uses alsograss_dbas the default palette.- Add
scale_fill_princess_c()scale family.
- Fix tests.
What's Changed
- Add GRASS palettes by @dieghernan in #150
Full Changelog: v0.6.0...v0.6.1
tidyterra 0.6.0
- Requires ggplot2 (>= 3.5.0).
- New methods for
SpatVectorobjects:pivot_longer.SpatVector()andpivot_wider.SpatVector().fill.SpatVector().
- New geom
geom_spatraster_contour_text()implemented on top of
isoband::isolines_grob()
.
glimpse.SpatRaster()andglimpse.SpatVector()now displays information
using?tibble::print.tbl_dfapproach for the header and the footer. The
body is still displayed transposed as ofdplyr::glimpse(). See
pillar::tbl_format_header()andpillar::tbl_format_footer()for
examples.as_sf()converts aSpatVectorto asfobject with an additional
tbl_dfclass for pretty printing.fortify.SpatRaster()gains a new argumentpivotthat allows better
integration with other ggplot2 geoms when pivoting. This is a wrapper of
tidyr::pivot_longer().- Tidy documentation.
- metR added to Suggests.
What's Changed
- Add
pivotmethods by @dieghernan in #133 - Add
fillmethod by @dieghernan in #135 - Improve glimpse method by @dieghernan in #136
- Make docs tidy by @dieghernan in #138
- Add
geom_spatraster_contour_textby @dieghernan in #143 - New argument on fortify by @dieghernan in #144
- Doc update by @dieghernan in #145
Full Changelog: v0.5.2...v0.6.0
tidyterra 0.5.2
- Adapt tests to ggplot2 3.5.0 (#129) @teunbrand.
- Reduce package size, specially relevant in the external raster
asia.tif.
What's Changed
- Bump actions/upload-artifact from 3 to 4 by @dependabot in #128
- Bump github/codeql-action from 2 to 3 by @dependabot in #127
- Test broken with upcoming ggplot2 by @teunbrand in #129
New Contributors
- @teunbrand made their first contribution in #129
Full Changelog: v0.5.1...v0.5.2
tidyterra 0.5.1
- Adjust tests for
as_sf()(#124).
What's Changed
- Fix test to adapt to upcoming version of
sfby @dieghernan in #125
Full Changelog: v0.5.0...v0.5.1