Skip to contents

Three declared axis directions determine it, and are read in preference to anything recorded. A frame that states the convention without spelling the axes out — most 3D recordings — has it from the field set_handedness() writes.

Usage

get_handedness(data)

Arguments

data

An aniframe or anievent object.

Value

"right", "left", or "unknown" when neither the axes nor the frame itself says.

Examples

af <- example_aniframe(n_obs = 3, n_individuals = 1, n_keypoints = 1)

# Two axes are not enough
af <- set_axis_directions(af, c(x = "right", y = "up"))
get_handedness(af)
#> [1] "unknown"