Skip to content

Commit

Permalink
Add geom_spatial_rgb (Fixes #28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed Feb 17, 2021
1 parent 08c2dc1 commit e557c7f
Show file tree
Hide file tree
Showing 7 changed files with 595 additions and 17 deletions.
9 changes: 6 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ Imports:
png,
utils,
sf,
units
units,
grDevices,
ggplot2,
sp
RoxygenNote: 7.1.1
Suggests:
testthat,
Expand All @@ -37,9 +40,9 @@ Suggests:
knitr,
rmarkdown,
progress,
ggplot2,
jpeg,
tiff
tiff,
brio
Config/testthat/parallel: true
Config/testthat/edition: 3
VignetteBuilder: knitr
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ S3method(get_tiles,sf)
S3method(get_tiles,sfc)
S3method(set_bbox_side_length,Raster)
S3method(set_bbox_side_length,sf)
export(StatSpatialRGB)
export(add_bbox_buffer)
export(combine_overlays)
export(deg_to_rad)
export(geom_spatial_rgb)
export(georeference_overlay)
export(get_tiles)
export(hit_national_map_api)
export(merge_rasters)
export(rad_to_deg)
export(raster_to_raw_tiles)
export(set_bbox_side_length)
export(stat_spatial_rgb)
export(vector_to_overlay)
importClassesFrom(sp,SpatialPixelsDataFrame)
7 changes: 6 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
* A handful of utility functions are no longer exported:
* `calc_haversine_distance`
* `point_from_distance`
* Improvements and bug fixes:
* New features:
* Two new functions, `geom_spatial_rgb` and `stat_spatial_rgb`, allow you to
use RGB map tiles as backgrounds for further plotting.
* `calc_haversine_distance` gains an argument `coord_units` allowing it to
handle coordinates in radians as well as degrees.
* Improvements and bug fixes:
* `georeference_overlay` provides `tempfile(fileext = ".tif")` as a default
output location if no `output_file` is provided.
* `get_tiles` now tells you what tiles it's retrieving, not retriving.
Expand All @@ -49,6 +52,8 @@
* `gdalUtilities` has been removed, with functionality replaced by `sf`.
* `rlang` has been removed, with functionality removed.
* `units` has been added.
* `ggplot2` has been moved to Imports (was previously in Suggests) due to
the new `geom_spatial_rgb` and `stat_spatial_rgb` functions.

# terrainr 0.2.1
* Improvements and bug fixes:
Expand Down
Loading

0 comments on commit e557c7f

Please sign in to comment.