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().
hypso.colors(): "artic", "meyers"
and "nordisk-familjebok".scale_colour_*.ggplot2::aes_string().spatraster_contour() and
geom_spatraster_contour_filled() to the changes introduced
in ggplot2 (3.4.0), most notably the adoption of
linewidth = .2, by default.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
default fill of the layer using
geom_spatraster(fill = NA) or
geom_spatraster(aes(fill = NULL)).
aes(fill = ggplot2::after_stat()) now works on
geom_spatraster().
Internal: Better handling of aes() and
layers
Add new function stat_spatraster().
Reduce the size of external files.
library or require is called. Messages on load
can be suppressed with
suppressPackageStartupMessages(library(tidyterra)).geom_spatraster_rgb() works with
facet_wrap() (#35)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() and
slice_max() for SpatRasters (#20). Also add a new parameter
na.rm.
Add new gradient scales for use on hypsometry:
scale_fill_hypso_c()scale_fill_whitebox_c()scale_fill_wiki_c()scale_fill_cross_blended_c()Add new asia.tif file on extdata.
Add DOI.
CRAN release.
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() and
geom_spatraster_rgb().
New methods:
pull()
transmute()
rename()
New geoms:
geom_spatraster_contour() family.NEWS.md file to track changes to the
package.