Skip to contents

hawaii_elevation() reads a raster of land elevation for the islands in hawaii, for trying out geom_hachure(). The terra package cannot store a raster as ordinary package data, so this function reads the raster from a file in the package.

Usage

hawaii_elevation()

Source

Terrain Tiles on the Registry of Open Data on AWS, https://registry.opendata.aws/terrain-tiles/, downloaded with the elevatr package. The tiles for Hawaii come from public-domain data of the United States Geological Survey.

Value

A SpatRaster with one layer, elevation, in metres above sea level. The cells are about 550 m across, in longitude and latitude (WGS 84). Cells in the sea are NA.

Examples

hawaii_elevation()
#> class       : SpatRaster
#> size        : 686, 1107, 1  (nrow, ncol, nlyr)
#> resolution  : 0.004999072, 0.004999093  (x, y)
#> extent      : -160.298, -154.7641, 18.85612, 22.28549  (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
#> source      : hawaii-elevation.tif
#> name        : elevation
#> min value   :         0
#> max value   :      4142