hex_neighbourhood_line_pos: [!] Neighbourhood line positions of hexagonal cells in map of...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/hex_neighbourhood_line_pos.R

Description

[!] Neighbourhood line positions of hexagonal cells in map of hexagons

Usage

1

Arguments

x

hexagon center coordinates.

y

hexagon center coordinates.

r

radius of circle inscribed in hexagon. Default value is 0.5.

l

distance from the center to the upper/lower vertices of hexagon.

...

further parameters to methods.

Value

dataframe with variables
Cell_ID - ID number of SOM cell;
x1, y1, x2, y2 - coordinates of starting and end points of neighbourhood boundary lines;
x_center, y_center - coordinates of neighbourhood boundary line centers.

Author(s)

Vilmantas Gegzna

See Also

Other SOM.and.hexagon.related.functions.in..pkg.spHelper.: hex_neighbour_dist, hexagonPT_verticles

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#====================================================================

data <- class::somgrid(8,6,"hexagonal")$pts
head(data)
x <- data[,"x"]
y <- data[,"y"]


hex_neighbourhood_line_pos(x, y)  %>% head

#====================================================================

GegznaV/kohonen.hexagons documentation built on May 6, 2019, 5:36 p.m.