layout: Create Layout Component

Description Usage Arguments See Also

View source: R/components.R

Description

Create Layout Component

Usage

1
2
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


maxheld83/reacthexgrid documentation built on Jan. 4, 2020, 10:46 a.m.