moin_network: moin_network

Description Usage Arguments Details Value Author(s) Examples

Description

Generates model graphs for MDM, PPA or IOM models.

Usage

1
2
moin_network(input, method = "iom", par = NULL, mode = "undirected",
  coords_x = NA, coords_y = NA, crs = NA)

Arguments

input

a sf object containing point coordinates or a data.frame.

method

type of model graph to be produced, either a Maximum Distance Model ("mdm"), a Proximal Point Analysis ("ppa") or a full graph as base for a Intervening Opportunity Model ("iom"); defaults to "iom" i.e. a full graph.

par

an integer indicating the distance threshold value D for method "mdm" and the neighbour rank k for "ppa" .

mode

a character string; default is undirected. Directed networks are not supported!

coords_x

a character string; defines the column name of the X-coordinate in case input is a data.frame; Defaults to NA.

coords_y

a character string; defines the column name of the Y-coordinate in case input is a data.frame; Defaults to NA.

crs

coordinate reference system: integer with the EPSG code, or character with proj4string.

Details

To find EPSG codes see e.g. EPSG.io or package rgdal.

Value

a list with

Author(s)

Hendrik Raese h.raese@ufg.uni-kiel.de

Georg Roth georg.roth@fu-berlin.de

Wolfgang Hamer hamer@geographie.uni-kiel.de

Examples

1
2
3
4
5
set.seed(1985)
d <- data.frame(matrix(runif(15), ncol = 3))
p <- sf::st_as_sf(x = d, coords = 1:2)
result <- moin_network(input = p, method = "mdm", par = 0.3)
plot(result$graph,sf::st_coordinates(result$input_data))

CRC1266-A2/moin documentation built on May 7, 2019, 8:56 p.m.