Package: terrainr 0.7.5.9000

Michael Mahoney

terrainr: Landscape Visualizations in R and 'Unity'

Functions for the retrieval, manipulation, and visualization of 'geospatial' data, with an aim towards producing '3D' landscape visualizations in the 'Unity' '3D' rendering engine. Functions are also provided for retrieving elevation data and base map tiles from the 'USGS' National Map <https://apps.nationalmap.gov/services/>.

Authors:Michael Mahoney [aut, cre], Mike Johnson [rev], Sydney Foks [rev]

terrainr_0.7.5.9000.tar.gz
terrainr_0.7.5.9000.zip(r-4.6)terrainr_0.7.5.9000.zip(r-4.5)terrainr_0.7.5.9000.zip(r-4.4)
terrainr_0.7.5.9000.tgz(r-4.5-any)terrainr_0.7.5.9000.tgz(r-4.4-any)
terrainr_0.7.5.9000.tar.gz(r-4.6-any)terrainr_0.7.5.9000.tar.gz(r-4.5-any)
terrainr_0.7.5.9000.tgz(r-4.5-emscripten)
terrainr.pdf |terrainr.html
terrainr/json (API)
NEWS

# Install 'terrainr' in R:
install.packages('terrainr', repos = c('https://packages.ropensci.org', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #416

Bug tracker:https://github.com/ropensci/terrainr/issues

Pkgdown site:https://docs.ropensci.org

On CRAN:

Conda:

datasetsdemsmapmap-tilesmappingnational-mapnhdorthoimagerypeer-reviewedprogressrretrieve-dataterrainrunityunity-rendering-engineusgs

7.10 score 73 stars 87 scripts 716 downloads 16 exports 49 dependencies

Last updated from:333db1ceed (on main). Checks:10 OK. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK153
pkgdown docsOK164
source / vignettesOK182
linux-release-x86_64OK158
macos-release-arm64OK81
macos-oldrel-arm64OK128
windows-develOK87
windows-releaseOK92
windows-oldrelOK87
wasm-releaseOK142

Exports:add_bbox_buffercombine_overlaysgeom_spatial_rgbgeoreference_overlayget_tileshit_national_map_apimake_manifestmake_unitymerge_rastersraster_to_raw_tilesset_bbox_side_lengthstat_spatial_rgbStatSpatialRGBtransform_elevationtransform_overlayvector_to_overlay

Dependencies:askpassbase64encclassclassIntclicurlDBIe1071farverggplot2gluegtablehttrisobandjsonliteKernSmoothlabelinglatticelifecyclemagickmagrittrMASSMatrixmgcvmimenlmeopensslpillarpkgconfigpngproceduralnamesproxyR6RColorBrewerRcpprlangs2scalessfsysterratibbleunifirunitsutf8vctrsviridisLitewithrwk

A gentle introduction to terrainr

Rendered fromoverview.Rmdusingknitr::rmarkdownon Aug 23 2025.

Last update: 2021-07-28
Started: 2020-10-09

Importing terrainr tiles into Unity

Rendered fromunity_instructions.Rmdusingknitr::rmarkdownon Aug 23 2025.

Last update: 2022-05-04
Started: 2020-10-13

Readme and manuals

Help Manual

Help pageTopics
Add a uniform buffer around a bounding box for geographic coordinatesaddbuff add_bbox_buffer add_bbox_buffer.Raster add_bbox_buffer.sf add_bbox_buffer.SpatRaster set_bbox_side_length set_bbox_side_length.Raster set_bbox_side_length.sf set_bbox_side_length.SpatRaster
Combine multiple image overlays into a single filecombine_overlays
Plot RGB rasters in ggplot2geom_spatial_rgb StatSpatialRGB stat_spatial_rgb
Georeference image overlays based on a reference rastergeoreference_overlay
A user-friendly way to get USGS National Map data tiles for an areaget_tiles get_tiles.list get_tiles.Raster get_tiles.sf get_tiles.sfc get_tiles.SpatRaster
Transform rasters and write manifest file for import into Unitymake_manifest transform_elevation transform_overlay
Initialize terrain inside of a Unity project.make_unity
Merge multiple raster files into a single rastermerge_rasters
Crop a raster and convert the output tiles into new formats.raster_to_raw_tiles
Turn spatial vector data into an image overlayvector_to_overlay