Skip to contents

Derived from the axis roles rather than declared: set_axes() says which column carries which role, and the system follows from the set of roles present. It is therefore not writable — see set_axes() to say what the columns mean, or anispace's map_to_*() functions to convert the coordinates themselves.

Usage

get_coordinate_system(data)

Arguments

data

An aniframe or anievent object.

Value

Length-one character vector: one of "cartesian_1d", "cartesian_2d", "cartesian_3d", "polar", "cylindrical", "spherical" or "unknown".

Examples

af <- example_aniframe(n_obs = 3, n_individuals = 1, n_keypoints = 1)
get_coordinate_system(af)
#> [1] "cartesian_2d"