tilt_map: Tilt raster and sf data

View source: R/tilt_maps.R

tilt_mapR Documentation

Tilt raster and sf data

Description

Tilt and shift maps in any direction.#'

Usage

tilt_map(
  data,
  x_stretch = 2,
  y_stretch = 1.2,
  x_tilt = 0,
  y_tilt = 1,
  x_shift = 0,
  y_shift = 0,
  angle_rotate = pi/20,
  boundary = NULL,
  parallel = FALSE
)

Arguments

data

sf or terra/stars/raster object.

x_stretch

Stretch in x dimension. A numeric vector of lenght 1.

y_stretch

Stretch in y dimension. A numeric vector of lenght 1.

x_tilt

Tilt in x dimension. A numeric vector of lenght 1.

y_tilt

Tilt in y dimension. A numeric vector of lenght 1.

x_shift

Shift in x dimension. A numeric vector of lenght 1.

y_shift

Shift in y dimension. A numeric vector of lenght 1.

angle_rotate

Rotation angle.. A numeric vector of lenght 1. Default is pi/20.

boundary

Another layer that is used to create a boundary that is drawn around the data

parallel

logical to run in parallel. FALSE (default)

Details

Code adopted from https://www.mzes.uni-mannheim.de/socialsciencedatalab/article/geospatial-data/.

Value

An sf object with tilted and shifted data.

Examples

tilt_map(landscape_1)

layer documentation built on April 3, 2025, 9:07 p.m.