Description Usage Arguments Details Value Author(s) Examples
Generates model graphs for MDM, PPA or IOM models.
1 2 |
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. |
To find EPSG codes see e.g. EPSG.io or package rgdal.
a list with
"graph" = a graph object of class tidygraph
"distance_matrix" = a matrix of all interpoint distances (given in meter)
"neighbourhood_matrix" = an adjacency (or neighbourhood) matrix, where 0 = not connected nodes and 1 = connected nodes.
"truncated_distance_matrix" = a matrix, where cell(ij) = distance(ij) if nodes are connected else 0.
"input_data" = the sf object supplied as input.
Hendrik Raese h.raese@ufg.uni-kiel.de
Georg Roth georg.roth@fu-berlin.de
Wolfgang Hamer hamer@geographie.uni-kiel.de
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.