graph_plan | R Documentation |
The function constructs a graph with a minimum planar graph topology
graph_plan(crds, ID = NULL, x = NULL, y = NULL, weight = TRUE)
crds |
A
|
ID |
A character string indicating the name of the column
of |
x |
A character string indicating the name of the column
of |
y |
A character string indicating the name of the column
of |
weight |
A character string indicating whether the links of the graph are weighted by Euclidean distances (TRUE)(default) or not (FALSE). When the graph links do not have weights in Euclidean distances, each link is given a weight of 1. |
A delaunay triangulation is performed in order to get the planar graph.
A planar graph of class igraph
P. Savary
data(pts_pop_ex) g_plan <- graph_plan(crds = pts_pop_ex, ID = "ID", x = "x", y = "y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.