This function generates a hexagonal lattice of points within the given x and
y limits, using a specified hexagon diameter. The diameter is 2 times the
distance between adjacent x (and y) values, see examples.
Usage
grid_hex(xlim, ylim, d)
Value
A data frame with two columns, x and y, containing the
coordinates of the hexagonal grid points.
Arguments
xlim
A numeric vector of length 2 specifying the x-axis limits.
ylim
A numeric vector of length 2 specifying the y-axis limits.