Create Layout Component

layout(..., size = list(x = 20, y = 20), flat = TRUE, spacing = 1.1,
  origin = list(x = 0, y = 0))

Arguments

...

child components

size

`[list(x = integer(), y = integer())]` giving sizes of the individual hexagons, relative to `viewBox` of the [hexgrid()].

flat

`[logical(1)]` giving whether the hexagons should flat (`TRUE`) or pointy-topped (`FALSE`).

spacing

`[numeric(1)]` giving the spacing between the hexagons as a *multiple* of `size` (probably; this is undocumented in the upstream library.) Must be greater than 1 to avoid overplotting

origin

`[list(x = integer(), y = integer())]` giving the origin from which to draw the [hexgrid()] given the axial coordinates of [hexagon()]s.

See also

Other components: hexagon, hexgrid, pattern, text