R/hexagonPT.R

Defines functions hexagonPT

Documented in hexagonPT

#' @rdname hexagonMap
#' @export
#'
hexagonPT <- function(x, y, col = NA, border="black", r = .5, l = r/cos(pi/6), ...) {
    # Coordinates of vertices
    coords <- hexagonPT_verticles(x,y,r,l)

    # print(data.frame(x0, y0))
    graphics::polygon(coords["x",],  coords["y",],
            col    = col,
            border = border,
            ...)
}
GegznaV/kohonen.hexagons documentation built on May 6, 2019, 5:36 p.m.