Learn R Programming

red (version 0.2.0)

raster.north: Create northness layer.

Description

Create a layer depicting northness based on an elevation layer.

Usage

raster.north(layer)

Arguments

layer
RasterLayer object of elevation as defined by package raster.

Value

A RasterLayer object.

Details

Using elevation, aspect can be calculated. Yet, it is a circular variable (0 = 360) and has to be converted to northness and eastness to be useful for modelling.

Examples

Run this code
data(data.sp)
raster::plot(raster.north(data.sp))

Run the code above in your browser using DataLab