acc_friction: acc_friction

Description Usage Arguments Examples

View source: R/acc_friction.R

Description

This function creates a friction map from several friction input layers that contain travelspeeds

Usage

1
2
3
4
5
6
7
8
  acc_friction(
  my_friction_layer_list,
  my_outputresolution,
  getproj = TRUE,
  my_proj = NULL,
  cropfriction = FALSE,
  my_croplayer = NULL
  )

Arguments

my_friction_layer_list

List that contains all friction input layers. Those will be stacked and should therefore be all of class raster(raster) and share the same reference system, resolution as well as extent

my_outputresolution

This defines the output resolution for the friction map in meters.

getproj

Automatically retrive an appropriate geographic projection system for the region? If set to TRUE a projection system is generated in Lambert Azimutal Equal Area which is appropriate for larger areas.

my_proj

If "getproj" is set to FALSE this option enables users to pass a custom geographic projection system for the resarch area in form of a a string (proj4string)

cropfriction

should the final map be cropped with another layer? This is usefull to reduce processing time of the accessiblity calculation in the the acc_accessibility function.

my_croplayer

if cropfriction is set to TRUE, provide here a vector layer for cropping the friction map. Should be of type SpatialPolygons(sp)

Examples

1

mapme-initiative/mapme.accessibility documentation built on March 3, 2021, 12:33 a.m.