powered by
Tilt and shift maps in any direction.#'
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 )
An sf object with tilted and shifted data.
sf
sf or terra/stars/raster object.
Stretch in x dimension. A numeric vector of lenght 1.
numeric
Stretch in y dimension. A numeric vector of lenght 1.
Tilt in x dimension. A numeric vector of lenght 1.
Tilt in y dimension. A numeric vector of lenght 1.
Shift in x dimension. A numeric vector of lenght 1.
Shift in y dimension. A numeric vector of lenght 1.
Rotation angle.. A numeric vector of lenght 1. Default is pi/20.
pi/20
Another layer that is used to create a boundary that is drawn around the data
logical to run in parallel. FALSE (default)
logical
Code adopted from https://www.mzes.uni-mannheim.de/socialsciencedatalab/article/geospatial-data/.
tilt_map(landscape_1)
Run the code above in your browser using DataLab