Releases: dieghernan/tidyterra
tidyterra 0.6.1
- Add new scales:
grass_db
andscale_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_db
as 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
SpatVector
objects: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_df
approach 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 aSpatVector
to asf
object with an additional
tbl_df
class for pretty printing.fortify.SpatRaster()
gains a new argumentpivot
that 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
pivot
methods by @dieghernan in #133 - Add
fill
method by @dieghernan in #135 - Improve glimpse method by @dieghernan in #136
- Make docs tidy by @dieghernan in #138
- Add
geom_spatraster_contour_text
by @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
sf
by @dieghernan in #125
Full Changelog: v0.5.0...v0.5.1
tidyterra 0.5.0
tidyterra has been accepted on JOSS. Please use the result of
citation("tidyterra")
or the following string:
Hernangómez, D. (2023). "Using the tidyverse with terra objects: the tidyterra
package." Journal of Open Source Software, 8(91), 5751. ISSN 2475-9066,
https://doi.org/10.21105/joss.05751
Other changes on this version:
- Support for SpatRasters with a color table
autoplot.SpatRaster()
can detect now SpatRasters with color tables.geom_spatraster()
can detect now SpatRasters with color tables.- New scales for plotting SpatRasters with color tables:
scale_fill_coltab()
and rest of family scales (colour
). - tidyverse verbs keeps the associated
coltab
of a SpatRaster.
- By default all the discrete scales of tidyterra now have the following
setup:na.translate = FALSE
. - By default, all the non-discrete (e.g. continuous or breaks) scales of
tidyterra have nowna.value = "transparent"
(#120). - Enhanced
glimpse.Spat()
with meta-information on type of geometry, crs,
etc. - New messaging interface thanks to cli package.
What's Changed
- Add new features by @dieghernan in #104
- Make
na.value = "transparent"
the default by @dieghernan in #122
Full Changelog: v0.4.1...v0.5.0
tidyterra 0.4.1
- Release for JOSS paper. No relevant changes.
What's Changed
- Bump actions/checkout from 3 to 4 by @dependabot in #111
Full Changelog: v0.4.0...v0.4.1
tidyterra 0.4.0
- This release focuses heavily on SpatVectors. The improvements have been:
- New methods for SpatVectors:
glimpse.SpatVector()
arrange.SpatVector()
distinct.SpatVector()
inner_join.SpatVector()
,left_join.SpatVector()
,
right_join.SpatVector()
andfull_join.SpatVector()
semi_join.SpatVector()
andanti_join.SpatVector()
summarise.SpatVector()
rowwise.SpatVector()
group_by.SpatVector()
,ungroup.SpatVector()
count.SpatVector()
,tally.SpatVector()
bind_spat_cols()
,bind_spat_rows()
- Already implemented methods now works with
dplyr::group_by()
. - Internal review of code. Now the methods does not rely on
sf::st_as_sf()
coercion. In fact coercion between object classes is
avoided as much as possible.
- New methods for SpatVectors:
- New
glimpse.SpatRaster()
method for SpatRaster. - Other coercing and helper functions:
as_spatvector()
as_sf()
is_grouped_spatvector()
What's Changed
- Add new methods for SpatVectors by @dieghernan in #82
- Update docs and fix tests by @dieghernan in #85
- Add bind methods for SpatVector by @dieghernan in #86
- Adapt SpatVectors methods by @dieghernan in #87
- Re-think group handling by @dieghernan in #90
- [ImgBot] Optimize images by @imgbot in #91
- Add rowwise for SpatVectors by @dieghernan in #92
New Contributors
Full Changelog: v0.3.2...v0.4.0
tidyterra 0.3.2
- Fix a bug on
pull_crs()
that returned"NA"
on sf objects with any
field equal toNA
(#74). - Improve docs on
scales_*
(#73) . - Remove dependency on crayon package (superseded) in favor of cli.
- Remove tidyverse from Suggests.
What's Changed
- Fix pull_crs by @dieghernan in #75
- Update dots by @dieghernan in #77
- Remove crayon package by @dieghernan in #78
- Avoid GDAL Warn by @dieghernan in #79
- Remove tidyverse from DESCRIPTION by @dieghernan in #80
Full Changelog: v0.3.1...v0.3.2
tidyterra 0.3.1
- New ggplot2 methods added:
-
Methods for
autoplot.SpatVector()
,autoplot.SpatRaster()
.autoplot.SpatRaster()
now is smarter on identifying the type of
plot to produce. Can still be overridden with parameters.
-
Methods for fortifying SpatRasters and SpatVectors:
fortify.SpatRaster()
,fortify.SpatVector()
.
-
- Three additional palettes are included on
hypso.colors()
:"artic"
,
"meyers"
and"nordisk-familjebok"
. - Added colour scales to all palettes:
scale_colour_*
. - Remove use of
ggplot2::aes_string()
. - Adapt geom_
spatraster_contour()
andgeom_spatraster_contour_filled()
to
the changes introduced in ggplot2 (3.4.0), most notably the adoption of
linewidth = .2
, by default.
What's Changed
- Add new palettes to hypso.colors() by @dieghernan in #56
- Add fortify methods by @dieghernan in #57
- Add color scales by @dieghernan in #58
- pkgdown build on ubuntu by @dieghernan in #59
- Bump actions/checkout from 2 to 3 by @dependabot in #60
- Try best practices with non-standard evaluation by @dieghernan in #63
New Contributors
- @dependabot made their first contribution in #60
Full Changelog: v0.3.0...v0.3.1
tidyterra 0.3.0
-
Package back to CRAN.
-
Libraries dplyr, tidyr, tibble are not attached by default.
Needed functions are reexported instead. -
Improvements on
geom_spatraster()
:-
Now in
geom_spatraster()
is possible to avoid the defaultfill
of
the layer usinggeom_spatraster(fill = NA)
or
geom_spatraster(aes(fill = NULL))
. -
aes(fill = ggplot2::after_stat())
now works ongeom_spatraster()
. -
Internal: Better handling of
aes()
and layers
-
-
Add new function
stat_spatraster()
. -
Reduce the size of external files.
What's Changed
- fill aesthetic in geom_spatraster() can be deactivated by @dieghernan in #50
- Add stat_spatraster by @dieghernan in #51
- Docs by @dieghernan in #52
- Prepare for CRAN by @dieghernan in #55
Full Changelog: v0.2.2...v0.3.0