tidyterra (development 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
. - Enhanced
glimpse.Spat()
with meta-information on type of geometry, crs, etc.
tidyterra 0.4.0
CRAN release: 2023-03-17
- 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:
tidyterra 0.3.2
CRAN release: 2023-02-24
- 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.
tidyterra 0.3.1
CRAN release: 2022-11-09
- 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()
.
- Methods for
- 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 oflinewidth = .2
, by default.
tidyterra 0.3.0
CRAN release: 2022-10-12
- 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)
orgeom_spatraster(aes(fill = NULL))
. -
aes(fill = ggplot2::after_stat())
now works ongeom_spatraster()
. - Internal: Better handling of
aes()
and layers
- Now in
- Add new function
stat_spatraster()
. - Reduce the size of external files.
tidyterra 0.2.2
CRAN release: 2022-09-29
- Changes on how dplyr, tibble and tidyr are attached. Now these packages are listed on ‘Depends’ and are attached before tidyterra when
library
orrequire
is called. Messages on load can be suppressed withsuppressPackageStartupMessages(library(tidyterra))
.
tidyterra 0.2.1
CRAN release: 2022-09-23
- Now
geom_spatraster_rgb()
works withfacet_wrap()
(#35) - Improve faceting when the plot facets are created using non-Spat* layers.
- Precompute vignettes.
tidyterra 0.2.0
CRAN release: 2022-06-21
- Recreate
extdata/volcano2.tif
using official DEM information from New Zealand. Source: Auckland LiDAR 1m DEM (2013). - Add
volcano2
dataset. - Fix errors on
slice_min()
andslice_max()
for SpatRasters (#20). Also add a new parameterna.rm
. - Add new gradient scales for use on hypsometry:
- Add new asia.tif file on
extdata
.
tidyterra 0.0.1
-
Improvements on performance:
- Conversion to tibble is avoided as much as possible.
- Internally use
data.table
instead of tibbles. - The package is compatible with
dtplyr
.
as_spatraster()
handles tibbles with characters and factors.Simplification and tests for
geom_spatraster()
andgeom_spatraster_rgb()
.-
New methods:
-
New geoms:
-
geom_spatraster_contour()
family.
-