R/position_to_graph.R
position_to_graph.RdCreate an igraph object defining adjacency of the channels. Adjacency is defined when 2 channels have a (Euclidean) distance inferior to delta.
position_to_graph(data, delta = 4, name = "name", x = "x", y = "y", z = "z")
| data | a data.frame containing the name and position of channels. |
|---|---|
| delta | a numeric defining the maximal distance for adjacency of two channels. |
| name | the column in the data containing the name of the channels. |
| x | the column in the data containing the X position of the channels. |
| y | the column in the data containing the Y position of the channels. |
| z | the column in the data containing the Z position of the channels. |
an igraph object.