build_graph: build_graph

Description Usage Arguments Value

View source: R/3ab_build_graph.R

Description

Creates fastgreedy community graph for extracting regions

Usage

1
build_graph(x, data, x.nb, similarity.measure, style)

Arguments

x

polygon or point data from witch neighborhood object will be created

data

data frame to build weights between polygons/points

x.nb

neighborhood object created by prepare_points() or prepare_polygons()

similarity.measure

method to calculate similarity/distance between neighboring points or polygons

style

style of neighborhood (see 'spdep::nb2listw“)

Value

a list containing community object ("fg") and graph object ("graph")


dabrowskia/dspace documentation built on July 3, 2020, 8:47 p.m.