Skip to contents

Get the direction each axis points

Usage

get_axis_directions(data)

Arguments

data

An aniframe or anievent object.

Value

Named character vector, axis role to direction. Empty when the frame declares none.

Examples

af <- example_aniframe(n_obs = 3, n_individuals = 1, n_keypoints = 1)
af <- set_axis_directions(af, c(x = "right", y = "up"))
get_axis_directions(af)
#>       x       y 
#> "right"    "up"