Skip to contents

Apply a dragmapr state to sf geometry

Usage

apply_dragmapr_state(
  x,
  state,
  region_col = NULL,
  base_offsets = NULL,
  ancestor_offsets = NULL
)

Arguments

x

An sf object.

state

A dragmapr_state object.

region_col

Column in x defining draggable groups. Defaults to the binding metadata stored in state.

base_offsets

Optional algorithmic base movement accepted by compose_offsets().

ancestor_offsets

Optional inherited movement accepted by compose_offsets().

Value

An sf object with region offsets applied.